TommyIndigo
Programmer
I'm using Win32::OLE, and need to extract some data from multiple workbooks/worksheets. My problem is that the target data isn't always in the same cells.
For instance, on one workbook, the value for cell A1 is the string "Last Name". Then, the value in B2 would be the last name the user entered.
However, if the user added rows, lets say 4, the heading would be in A5 and the name entered in B5. There may also have been added columns, further complicating matters.
I'd like to search for the string, "Last Name" and return the value from one cell to the right. Any ideas? This is actually a simplified example, but if I can do the above, I should be able to modify it for my specific needs.
NOTE: I am NOT using the ParseExcel module, as my workbooks involve multiple sheets with heavy macros and protection.
Thanks!
For instance, on one workbook, the value for cell A1 is the string "Last Name". Then, the value in B2 would be the last name the user entered.
However, if the user added rows, lets say 4, the heading would be in A5 and the name entered in B5. There may also have been added columns, further complicating matters.
I'd like to search for the string, "Last Name" and return the value from one cell to the right. Any ideas? This is actually a simplified example, but if I can do the above, I should be able to modify it for my specific needs.
NOTE: I am NOT using the ParseExcel module, as my workbooks involve multiple sheets with heavy macros and protection.
Thanks!