Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
VBA doesn't really support what you describe. Some of this functionality
can be achieved by using the selection object, but it is more robust to loop through the sheets and make the change on each sheet for each sh in ActiveWindow.Selectedsheets ' add code to do the work such as: sh.Range("A1").Interior.ColorIndex = 3 Next -- Regards, Tom Ogilvy "LeoNgan" wrote in message ... No .. you mis-understand my meaning .. in Excel you can select multiple worksheet by click the tab with shift button (Sheet1, Sheet2, Sheet3, etc) and then apply function on them. Now I would like to write a macro, which effect to the user's selected worksheet. It is a dynamical situation. Got it ?? :) ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Blocking/Disabling selected worksheet | Excel Worksheet Functions | |||
Detecting Duplicate Sums - Worksheet code | Excel Discussion (Misc queries) | |||
Hiding worksheet unless selected | Excel Discussion (Misc queries) | |||
How to run a macro when a worksheet is selected | Excel Worksheet Functions | |||
Detecting Worksheet change | Excel Programming |