bullionbuks
New Member
- Joined
- May 27, 2004
- Messages
- 12
For some reason when I insert a new sheet into a workbook 3 sheets show up. How can I change the default insert back to 1 sheet at a time.
Thanks,
Thanks,
Sub Insert_Sheet_Ex()
'
' Insert_Sheet_Ex Macro
'
Dim OrigSheetCount As Integer
Dim FinalSheetCount As Integer
OrigSheetCount = Sheets.Count
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Sheets.Add Type:="Worksheet"
FinalSheetCount = Sheets.Count
MsgBox "Original Sheet Count: " & OrigSheetCount & vbCrLf & "Final Sheet Count: " & FinalSheetCount
End Sub