| |
marcuscus
Posts: 1
Score: 0
Joined: 10/7/2002
From: United Kingdom
Status: offline
|
Hi all, This may be a daft question (I'm begineer) but is it possible to pass variables to a VBA procedure from a VBScript? For example... Dim name Dim excel Set excel = CreateObject("Excel.Application") excel.Visible = True excel.Workbooks.Open( "E:\test.xls" ) name = "Marco" Call excel.Run( "test.xls!PrintName", name ) Where the VBA function is... Sub PrintName( name As String ) MsgBox name End Sub Thanks for any help, Marco
|
|