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: 31
Default indicating sheet

Is there a way of telling a macro to run in the specified sheet, without using:

Worksheets("Sheet1").<property

Can I use a refrence like this.<property or me.<property?

I'm looking to do some formatting of a sheet in VBA, setting the page
orientation, and Print Area. The name of the sheet may change from instance
to instance though, so I don't want to put in a static page name.

Thank you in advance for any help offered.
 
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
Indicating the first occurance of the max value in a range Aline Yiu Excel Worksheet Functions 1 February 6th 08 04:00 AM
I need a little help with comparing columns and indicating the mat IFIXPCS Excel Worksheet Functions 1 February 22nd 06 05:01 PM
Automatically Indicating Payments Due nicholea Excel Discussion (Misc queries) 4 December 16th 05 02:25 PM
Indicating Payment Due nicholea Excel Discussion (Misc queries) 2 December 14th 05 10:43 PM
Indicating worksheets are hidden Robert Christie[_3_] Excel Programming 5 February 23rd 04 05:12 AM


All times are GMT +1. The time now is 02:41 AM.

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

About Us

"It's about Microsoft Excel"