Thread: VBA Problems
View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.misc
[email protected] dksaluki@gmail.com is offline
external usenet poster
 
Posts: 3
Default VBA Problems

This works for me just fine every time: (well, i stopped at 20
sheets, but i think it'll be okay!)

Sub SheetsCount()
Dim i As Integer
i = Sheets.Count
Sheets("Sheet1").Copy After:=Sheets(i)
End Sub

....code is in a module, not a Sheet object.