I most humbly apologize in advance for my lack of knowledge, I'm sure my questions are painfully obvious to you guys!
I am trying to set up a macro that will scrape a cell value from excel, send to extra & <enter>, send more cells once the Extra screen comes up, <enter> and keep going row by row,until the next row is blank.
I have begged/borrowed/stolen scraps of macro code from this site and got something that sorta works, but I'm not understanding some basic concepts. the Help files for both excel VBA and Extra sort of assume you know what you're doing so they haven't been helpful to me. and recording hasn't helped me either.
whatever I'm doing isn't sending the value from excel to extra. I *had* it sorta working (it was sending the value to extra etc but I hadn't figured out how to loop until the row was blank), but (based on info I read here) I went back and specified the worksheet instead of relying on activesheet.
this worked:
this doesn't:
and I have no experience with VBA so none of this makes any sense to me. (in my limited defense I could write code for the OLD extra basic in my sleep.)
another issue I have is that excel stays "open" when I'm done, I have no idea how to "clear" it. I'd like to have __xlApp.Visible = True__ be False because we don't need to have excel open, but when I change to False I can only see excel running in task Mgr and have to close it that way, attempts to open the file are read-only because the file is already open.
could someone please tell me what I am missing? I realize that these questions must be pretty "d'oh!" for you, but I am just not finding what I need to do it alone.
thanks in advance.
I am trying to set up a macro that will scrape a cell value from excel, send to extra & <enter>, send more cells once the Extra screen comes up, <enter> and keep going row by row,until the next row is blank.
I have begged/borrowed/stolen scraps of macro code from this site and got something that sorta works, but I'm not understanding some basic concepts. the Help files for both excel VBA and Extra sort of assume you know what you're doing so they haven't been helpful to me. and recording hasn't helped me either.
whatever I'm doing isn't sending the value from excel to extra. I *had* it sorta working (it was sending the value to extra etc but I hadn't figured out how to loop until the row was blank), but (based on info I read here) I went back and specified the worksheet instead of relying on activesheet.
this worked:
Code:
xlApp.Workbooks.Open FileName:="C:\MHNAR.xls"
Set xlSheet = xlApp.activesheet
Set APNMyRange = xlApp.activesheet.Range("G5")
this doesn't:
Code:
xlApp.Workbooks.Open FileName:="C:\MHNAR.xls"
Set xlSheet = xlApp.worksheets("MH")
Set APNMyRange = xlApp.xlSheet.range("G5")
and I have no experience with VBA so none of this makes any sense to me. (in my limited defense I could write code for the OLD extra basic in my sleep.)
another issue I have is that excel stays "open" when I'm done, I have no idea how to "clear" it. I'd like to have __xlApp.Visible = True__ be False because we don't need to have excel open, but when I change to False I can only see excel running in task Mgr and have to close it that way, attempts to open the file are read-only because the file is already open.
could someone please tell me what I am missing? I realize that these questions must be pretty "d'oh!" for you, but I am just not finding what I need to do it alone.
thanks in advance.