Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have the following Macro where I'm trying to load a bookmark and then call another function that loops through a field, exporting XLS files.
sub ExportDriver ActiveDocument.RecallDocBookmark "Test2" call AML_PrintToExcel("vExportLocation", "ExportChart", "AccountNumber_AdBase")end sub
After recalling the bookmark inset the following line so that the macro waits for the bookmark to be applied.
ActiveDocument.GetApplication.WaitForIdle
Regards.