Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have built a macro in Excel 2000 that I want to run on any active sheet that I am on in a workbook. However, I get the error in the subject line, above, for the following code: While Not LastColumn If Cells(1, traces + 1).Value = "Volt" Then traces = traces + 1 Else LastColumn = True End If Wend I know that typically one specifies the sheet by identifying Cells with Sheet(1) or whatever, but I don't want this macro to be tied to any specific sheet, only the one that is presently active. Does anyone have any ideas? Thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-time error '1004': Method 'Range' of object '_Global' failed | Excel Programming | |||
Run-time error '1004': Method 'Range' of object '_Global' failed | Excel Programming | |||
runtime error 1004 method range of object '_global failed | Excel Discussion (Misc queries) | |||
Error 1004: Method 'Cells' of object '_Global' failed | Excel Programming | |||
"Run-time error '1004'" Method 'Range' of object '_global' failed. | Excel Programming |