Ok, the code was re-written specifically tp post here. Since the same error is still apparent, I don't think there's a difference.
Sub Main
Dim appExcel As Object
Dim wbExcel As Object
Dim aSheet As Object
filePath="C:\documents and settings\assadk\desktop\Copy of tests2.xls"...
Sorry, I left out the line declaring aSheet. Here it is:
Set aSheet = wbExcel.Sheets(Sheet1)
But, the program did not act any different. Anything else?
Here you go
Dim wbExcel As Object
Dim aSheet As Object
Dim queueID As String
Dim filePath as String
filePath="C:\documents and settings\assadk\desktop\Copy of tests2.xls"
Set AppExcel = CreateObject("Excel.Application")
Set wbExcel = AppExcel.WorkBooks.Open(filepath)
queueID=...
We have a macro that writes to Excel from Attachmate and then saves it. At least, that's what it's supposed to do. It only works when Excel is closed. However, we want it to save while the Excel window is open. But, it does not work, it ends up saving to the My Documents (default file location...
Hello, I was wondering if there was a way to wait for certain keys to be pressed while the macro is running. For example, while the macro is running, is it possible to wait for a key to be pressed, so i could exit macro, mid-run? Also, i would like to know if i can wait for two different keys at...
Hello, I am using EB to send an email that gets information from excel. For example, i need to send an email that contains every row that has been marked by initials in another column. I want to be able to take only those rows and email them. That would work, or if not i was wondering if i could...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.