View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Nick Hodge Nick Hodge is offline
external usenet poster
 
Posts: 1,173
Default Adding new worksheet using VBA

Wuming

This code in the Click event of a command button

Private Sub CommandButton1_Click()
Worksheets.Add
End Sub


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"wuming " wrote in message
...
Hi,
How do u add a new worksheet to an existing workbook when lets say a
command button is clicked? The worksheet would then asked user to input
data. Anyone knows?


---
Message posted from
http://www.ExcelForum.com/