Extra X-Treme Macro read from Excel
Extra X-Treme Macro read from Excel
(OP)
Let me apologize in advance for being woefully un-educated in the art of macro creation. This project fell in my lap and I'm at a total loss.
We have an Excel sheet that contains values in A1:A15. I need to create a macro that will copy the value from Cell A1 and paste into into Extra!, there will be a couple of other commands exectued at this point and then I need it to return to Excel and grab cell A2 and paste... rinse and repeat until we hit A15.
I had hoped I could just use the record macro option... but alas it does not record the portion where I leave Extra! and grab the data from Excel.
Any assistance you can provide would be greatly appreciated.
We have an Excel sheet that contains values in A1:A15. I need to create a macro that will copy the value from Cell A1 and paste into into Extra!, there will be a couple of other commands exectued at this point and then I need it to return to Excel and grab cell A2 and paste... rinse and repeat until we hit A15.
I had hoped I could just use the record macro option... but alas it does not record the portion where I leave Extra! and grab the data from Excel.
Any assistance you can provide would be greatly appreciated.
RE: Extra X-Treme Macro read from Excel
RE: Extra X-Treme Macro read from Excel
Hi,
Of course you need to set the Excel Application object, just as you set the Extra System object.
Then
code]
dim xl as object, r as object
xl.sheets(1)
for each r in .range(.Cells(1, "A"),.Cells(1, "A").end(xldown))
oScreen.PutString(row,col) = r.value
next
end with
[/code]
where oScreen is your Extra screen object and row is a variable containing the target row and col is a variable containing the target column. Of course you must control your variables.
The range technique, means that all you need to specify is the starting row and the END property extends the range in the specified direction, to the last cell containing any value.
Skip,
Just traded in my old subtlety...
for a NUANCE!
RE: Extra X-Treme Macro read from Excel
This is obviously very new to me, but some of the things that can be accomplished is rather exciting. I need to find a resource that lists all of the available VBA commands rather than just happening upon them by accident. :)
RE: Extra X-Treme Macro read from Excel
Look in HELP
Skip,
Just traded in my old subtlety...
for a NUANCE!