I have straight table objects with ID's: "HPA", "RBM", "Listing".
I'm trying to write a macro which exports these tables in csv format, into folders I specify.
Object "HPA" and "RBM" are in a Container Object. If table "HPA" is not selected in that container, the first part of the code will not work. Similarly if "RBM" is not selected in the container the Object2 part will not work.
Has anybody got any tips on how to overcome this?
The code I am using is below:
set sObject1 = ActiveDocument.GetSheetObject("HPA")