G
Girish Bantwal
HI
What is the macro for adding new sheets and automatically pushing it
to the end. Every time excel adds a new sheet this is the format in
which sheets are added C110 C109 C108 WHICH I DONT WANT i want sheets
to come in the following fashion C108 C109 C110. I have written a VB
code pls check up and tell me where i am going wrong
Sub Macro1()
'
Dim i As Integer
Dim LastSheetName As String
Dim NewSheetName As String
Dim PromptForName As String
Dim AddedSheetName As String
i = 108
For i = 108 To 110
Sheets.Add
AddedSheetName = ActiveSheet.Name
NewSheetName = "C" & i
Sheets(AddedSheetName).Name = NewSheetName
Next
End Sub
THANKS
GIRISH
What is the macro for adding new sheets and automatically pushing it
to the end. Every time excel adds a new sheet this is the format in
which sheets are added C110 C109 C108 WHICH I DONT WANT i want sheets
to come in the following fashion C108 C109 C110. I have written a VB
code pls check up and tell me where i am going wrong
Sub Macro1()
'
Dim i As Integer
Dim LastSheetName As String
Dim NewSheetName As String
Dim PromptForName As String
Dim AddedSheetName As String
i = 108
For i = 108 To 110
Sheets.Add
AddedSheetName = ActiveSheet.Name
NewSheetName = "C" & i
Sheets(AddedSheetName).Name = NewSheetName
Next
End Sub
THANKS
GIRISH