Basically I want to save the content of each cell in a column as individual variables but the number of cells in the column will differ each time. The data in the spreadsheet always starts in cell A4 but could go down to A12 or A112 or anything else. I've added another cell in C1 which shows the number of populated cells counting from cell A4 so I've then come up with this in Macro Scheduler:
Code: Select all
//ask for location of spreadsheet.
Input>file_name,Please Browse To File Containing Headings,
//get the file name on its own
Separate>file_name,\,parts
Let>xls_name=parts_%parts_count%
//get number of headings. Spreadsheet must be open!
DDERequest>Excel,xls_name,R1C3,headings_no,60
//extract first heading
DDERequest>Excel,xls_name,R4C1,headings_1,60
Code: Select all
DDERequest>Excel,xls_name,R5C1,headings_2,60
DDERequest>Excel,xls_name,R6C1,headings_3,60
DDERequest>Excel,xls_name,R7C1,headings_4,60
DDERequest>Excel,xls_name,R8C1,headings_5,60
etc