LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default VBA worksheet references

VBA doesn't seem to like when I use the following code:

Workbooks("mybook").Sheet1.Range("A1").Value = 100

However, the code seems to work when I remove the part that says:

Workbooks("mybook").

How can I fix this reference so that I am able to use my VBA "Sheet1"
reference and specify the workbook at the same time?

thank u

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
3-D worksheet references? Brady[_2_] Excel Discussion (Misc queries) 2 April 2nd 08 03:24 PM
Replicating worksheet references SueG Excel Worksheet Functions 5 November 5th 07 03:58 PM
worksheet references dave glynn Excel Discussion (Misc queries) 1 February 23rd 06 05:24 PM
Cell References from old worksheet to new worksheet. Ray Elias Excel Discussion (Misc queries) 5 December 9th 05 01:46 AM
Worksheet references another tab in formula Bonita Excel Worksheet Functions 2 March 14th 05 09:44 PM


All times are GMT +1. The time now is 01:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"