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 / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Vb ranges - Newbie question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MarkI - 27 Jul 2006 11:51 GMT
Hello all

I am defining a range in an application:

Set rnge = range("csv_update")

this works great as long as the code is executed from the worksheet that the
range is on. I would like to hide this sheet and execute the code on a sheet
(in the same workbook) called "Monitor".

How can I get a hold of the range on a hidden worksheet from a button on the
"Monitor" worksheet (or any other worksheet for that matter)?

Many thanks
Bob Phillips - 27 Jul 2006 12:01 GMT
maybe try

   Set rnge = Worksheets("hidden_sheet_name").range("csv_update")

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> Hello all
>
[quoted text clipped - 10 lines]
>
> Many thanks
MarkI - 27 Jul 2006 12:49 GMT
> maybe try
>
[quoted text clipped - 17 lines]
>>
>> Many thanks

Thanks for the prompt reply. That was just the ticket :-)

Regards

Mark
Miguel Zapico - 27 Jul 2006 16:51 GMT
You can refer the worksheet before the range.  In this example, if the sheet
is called "Sheet1" it would be:
Set rnge = Activeworkbook.Worksheets("Sheet1").range("csv_update")

Hope this helps,
Miguel.

> Hello all
>
[quoted text clipped - 10 lines]
>
> Many thanks
 
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.