Hi,
I have 2 scenarios that I am trying to cater for both which work well but I am trying to tweak one to facilitate reporting later on.
The first allows me to copy a sheet to the workbook from a hidden "template" sheet then rename it to the name of the current sheet and then auto number the new sheet in sequence.
Example - Scenario 1
1. Template sheet called My template and hidden
2. Active sheet called (Test)
Code then
Copies a sheet to workbook based on template and rename's it to Test 1
Code again would add template sheet and rename sheet Test 2 etc.
Scenario 2
Using just the ActiveSheet.Copy After:=ActiveSheet allows me to take the active sheet and then in excel fashion add Sheet name and then number in brackets.
This again is fine but i was wondering if there is anyway of having fixed text within the brackets preceeding the number
Example
Active sheet..........Test 1
Result of copy....... Test 1 (1)
Result of another copy...... Test 1 (2)
Etc.
I am trying to to get it so I can have a result like this...
Active sheet..........Test 1
Result of copy....... Test 1 (Option 1)
Result of another copy...... Test 1 (Option 2)
Etc.
The actual copy is perfect but later processes and reporting will be much improved and identified if I could add "Option" within the bracketed number which is being generated by the ActiveSheet.Copy After:=ActiveSheet code.
The other nice thing about this for me is that all sheets are displayed correctly in sequence as the book is built up.
(On site survey form)
I just can't see where I can add the additional text as it seems it's just the way excel deals with the copy and nothing that I can pick apart.
Any thoughts greatly received
Dean
Bookmarks