View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson[_5_] Dave Peterson[_5_] is offline
external usenet poster
 
Posts: 1,758
Default Sheet Copy After:

Or this...

Worksheets.Add after:=ActiveSheet

(maybe better if you have non-worksheets in the workbook)

Ron de Bruin wrote:

Hi

Try this

Worksheets.Add after:=Worksheets(ActiveSheet.Index)

--
Regards Ron de Bruin
http://www.rondebruin.nl

"asmenut" wrote in message
...
I have a workbook that contains 5 sheets. From time to time the user will
need to add a sheet after the active sheet.

I know that there is a "Before" option, but is there a way that I can code
(VBA) a way to insert the new sheet "After" the activesheet?


--

Dave Peterson