I have a large dataset that I do not have direct access to and am trying to convert the data headers into column headings using Python and then returning it back to Excel.
I have created the function to do this and it works but I have hit a snag. What I want the Excel VBA to do is loop down the range and if the cell's value matches the criteria call the Python function and return the resulting list items in the columns moving across from the original cell. For example:
A1
holds the string to format, the functions returns B1
, C1
, D1
, and so on. I can only get this to work if I hard code B1
, C1
, D1
, etc.
Is there a way to do this via the get_address()
range method? I think I can then use the offset()
method but am not sure.