Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

How to refer to the value of a cell containing a VBA function?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob at Great Waters - 21 Mar 2006 22:35 GMT
I have a VBA function in a cell of one worksheet and want to use the value in
a cell of another worksheet.  I haven't been able to figure out how to do
that.

Bob
Dave Peterson - 22 Mar 2006 01:16 GMT
workbooks("book2.xls").worksheets("sheet2").range("a2").value _
= workbooks("book1.xls").worksheets("sheet1").range("a1").value

is one way.

if they're in the same workbook:

with workbooks("book1.xls")
  .worksheets("sheet2").range("a2").value _
    = .worksheets("sheet1").range("a1").value
end with

> I have a VBA function in a cell of one worksheet and want to use the value in
> a cell of another worksheet.  I haven't been able to figure out how to do
> that.
>
> Bob

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.