I'm still not sure if I got you right!
Please have a look on the changes I've done in HeritageOrg
I still need SendKeys to trigger the file download box which allows me to open the desired workbook.
With this solution the problem gets even worse:
1) Same problem as described above: Different behavior by just opening the file (auto run) and manual execution via vba editor.
2) Please see this line: !!!!! please set breakpoint one line above !! Again different behavior: By monitoring Application.ActiveWorkbook.Name via the watch window, this value seems to be always vba_download_NODB.xlsm without setting a breakpoint. By using the breakpoints its fist vba_download_NODB.xlsm and data.csv then.
?????
Bookmarks