LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Ordering Worksheets


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ordering the chart by value Ruth Charts and Charting in Excel 0 May 27th 10 10:12 PM
Re-ordering Worksheets Neil Pearce Excel Discussion (Misc queries) 2 June 16th 09 02:28 PM
Ordering Problem JD Excel Discussion (Misc queries) 4 January 24th 08 09:26 PM
ordering pytelium Excel Discussion (Misc queries) 3 March 13th 06 11:21 PM
ordering Dave B[_3_] Excel Programming 2 August 14th 04 03:52 AM


All times are GMT +1. The time now is 05:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"