Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi All, Can anyone explain why the following code does not work in a module: Sub SelAll() For Each Sht In ActiveWorkbook.Worksheets Sht.Cells.Select Next End Sub Whereas, the following code works fine in a worksheet code: Sub SelSht() Cells.Select End Sub I am guessing it is related to scope, but I cannot see why from my reading of the excel help files. Thanks in advance, Alan. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Up down arrow keys do not select cells if select locked cells unch | Excel Discussion (Misc queries) | |||
Macro to select cells without a certain value and select a menu it | Excel Worksheet Functions | |||
Using formulas to select cells (Ex: Select every nth cell in a col | Excel Discussion (Misc queries) | |||
code in module A to not execute a Worksheet_SelectionChange sub of another module | Excel Discussion (Misc queries) | |||
how do you "select locked cells" w/o "select unlocked cells"? | Excel Discussion (Misc queries) |