Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I'm trying to create a macro that puts the worksheets in my workbook in a specific order. Problems arise when certain workbooks are not created because of missing information. Below is a piece of the code that I wrote to skip over worksheets that don't exist in my workbook: E1: On Error GoTo E2 Sheets("RegionGraphs").Move Befo=Sheets(i) i = i + 1 Exit Sub E2: On Error GoTo E3 Sheets("RegionWorksheet").Move Befo=Sheets(i) i = i + 1 Exit Sub E3: However, the code keeps breaking because of a subscript error. Can you anyone help to debug this code or suggest an easier way to order my worksheets? -- PGalla06 ------------------------------------------------------------------------ PGalla06's Profile: http://www.excelforum.com/member.php...o&userid=24260 View this thread: http://www.excelforum.com/showthread...hreadid=495320 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Ordering the chart by value | Charts and Charting in Excel | |||
Re-ordering Worksheets | Excel Discussion (Misc queries) | |||
Ordering Problem | Excel Discussion (Misc queries) | |||
ordering | Excel Discussion (Misc queries) | |||
ordering | Excel Programming |