Arranging Excel sheets

divyaquamara

Board Regular
Joined
Jun 27, 2011
Messages
67
I am extracting data from a summary report and placing in more than 500 tempelates.
I was using the command:
Sheets("Report").Copy after:=Sheets(Sheets.Count)
which gave run time error: Copy method of worksheet class failed.
So I used Microsofts work around with this problem and now using command
Sheets.Add Type:="H:\Personal\Report.xlt"
The above generates the reports but places them in desending order but I dont want it like that. It should place reports in order (1 2 3 4 5 ....) and not ( 5 4 3 2 1)(as it does now.
How to solve this problem.
Thanks in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Is there something like before or after I can add here?
I tried it but does not work. May be cos I did not append it at the right place.
Please help
 
Upvote 0
Try: (UnTested)
Code:
Sheets.Add before:=Sheets(Sheets.Count), Type:="H:\Personal\Report.xlt"
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top