| |
mike21ap
Posts: 12
Score: 0
Joined: 11/14/2006
Status: offline
|
Original message moved by TNO Reason : Incorrect Forum OK.. so I have a Excel spreadsheet which has a VB UserForm with a couple of buttons... when a button is presses it triggers a VBScript... but in a new Excel window... (not what I want) Script starts with : Private Sub CommandButton1_Click() Const ADS_SCOPE_SUBTREE = 2 Set objExcel = CreateObject("Excel.Application") objExcel.Visible = True objExcel.Workbooks.Add ......................................................... How can I modify this so instead of opening a new Excel windows, it will just add a new sheet to my existing Excel workbook from which I invoke this script? Thanks a lot Mike
|
|