Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
Fairly straightforward question I think, basically I want a little macro to format a workbook I have open. It will select "A1" in each sheet and then return to the first sheet. This is what I have: Dim i As Integer wksname = ActiveSheet.Name For i = 1 To Sheets.Count Sheets(i).Select Range("A1").Select Next i 'Sheets(wksname).Activate unfortunately I get a "run time error 1004" message saying "Select method of workclass failed". Can anyone shed any light? Cheers in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Color formatting issue when copying excel sheet from workbook to o | Excel Discussion (Misc queries) | |||
Copy Excel Sheet to another sheet and preserve formatting? | Excel Programming | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
How do I copy formatting from 1 sheet to next in same workbook? | Excel Worksheet Functions |