Hi, how can i make this so it doesnt open another excel sheet but uses the one thats already open. For example, this macro is in workbook book1 and i want it to use the data in cell b3 from this same workbook to input data into Attachmate.
Thanks
Thanks
Code:
Dim xlApp As Object, xlSheet As Object, MyRange As Object
Set xlApp = CreateObject("excel.application")
xlApp.Application.DisplayAlerts = False 'Turn off Warning Messages'
xlApp.Visible = True
xlApp.Workbooks.Open Filename:="c:\test.xlsx"
Set xlSheet = xlApp.ActiveSheet
Set MyRange = xlApp.ActiveSheet.Range("B3:B14")