Will it be possible to rearrange the sheets of a book in a given order.
Will it be possible to rearrange the sheets of a book in a given order.
Sheets("Sheet1").Move After:=Sheets(3)
You can do this in Excel, so you could have recorded youself doing it, and would have solved it, also 1st answer in google would have done it to.
![]()
Hope this helps
Sometimes its best to start at the beginning and learn VBA & Excel.
Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
Available for remote consultancy work PM me
It is possible, but we need more information on what order you'd like to put them in. And based what.
If the sheet name is "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"
I want to rearrange in this order "1, 3, 5, 7, 9, 2, 4, 6, 8, 10"...
Note: Sheetname could be Alphanumeric also. i want to rearranged based order given by me.
Maybe for your example.
For this one your Array needs to be in reverse order of your arrangement.![]()
Please Login or Register to view this content.
In a normal excel Book, the sheets will in this order... " Sheet1, Sheet2, Sheet3, Sheet4, Sheet5, Sheet6, Sheet7, Sheet8, Sheet9, Sheet10".
Now i want to rearrange them in a new order like this... "Sheet8, Sheet9, Sheet10, Sheet2, Sheet3, Sheet4, Sheet5, Sheet6, Sheet1, Sheet7"
Something without any order... that is what i mainely required. That order will be defined by me...
Here is the code:
![]()
Please Login or Register to view this content.
Last edited by kvsrinivasamurthy; 09-19-2014 at 02:19 AM.
This is working well.. Sheets are not arranged in the given order. can you explain me how to fill the inputbox exactly with my given example.
Now i want to rearrange them in a new order like this... "Sheet8, Sheet9, Sheet10, Sheet2, Sheet3, Sheet4, Sheet5, Sheet6, Sheet1, Sheet7"
Enter like this,
Sheet8, Sheet9, Sheet10, Sheet2, Sheet3, Sheet4, Sheet5, Sheet6, Sheet1, Sheet7
i have given the same input within double codes. But still the sheets were remains in the same order as it was in original. Can pls check and do the needful in closing the issue. this is help me a lot.
Do not Give double cotes.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks