|
-
Mar 22nd, 2006, 03:40 PM
#1
Thread Starter
Addicted Member
-
Mar 22nd, 2006, 03:44 PM
#2
Re: Move Method Excel VBA
Bill
Make the loop start at the last worksheet and work backwards. If you go in a forward direction, you will skip sheets - you move sheet 1, the count goes to 2, so next time you end up moving sheet 3....
VB Code:
For x = ThisWorkbook.Worksheets.Count To 1 Step -1
'insert your code here
Next x
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Mar 22nd, 2006, 03:47 PM
#3
Thread Starter
Addicted Member
Re: Move Method Excel VBA
alway better with code snippet
I'm not using sheet number but sheet name sent to the sub
...
Last edited by billhuard; Mar 23rd, 2006 at 08:41 AM.
-
Mar 22nd, 2006, 03:58 PM
#4
Thread Starter
Addicted Member
-
Mar 22nd, 2006, 04:06 PM
#5
Thread Starter
Addicted Member
-
Mar 23rd, 2006, 08:43 AM
#6
Thread Starter
Addicted Member
Re: Move Method Excel VBA
I didn't find out what the hell is going on.
So this thread is solved. I'm gonna add a new sheet to the workbook 2 and copy paste the sheet from workbook 1.
Saved the screen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|