I have an excel sheet that I have to extract data from. Is there a way to select all the cells that have data in them? I'm extracting data right now like so:
Set rng = Selection
newValue = rng.Cells(someNumber, anotherNumber).Value
But this requires me to manually select the cells I want to extract data from.
Also, the range will change from document to document. Is there a way to make this dynamic so I don't have to manually change it for every new document?