I my macro I improt data by opening a spreadsheet copying the data over and closing it, and therefore flick between workbooks.
This is creating my problems and flicks to the wrong workbooks occasionally.
So I need to tell it to flick back the workbook the marco is in, but this workbook changes its name, so I can not say:
Windows(".......").Activate
Is there a way I can at the beginning give the workbook a name reference early on in the macro, eg something like:
MacroWorkbook = ActiveWindow
? And then each time I want to flick to this workbook I can refer to it as:
Windows(MacroWookbook).Activate?
Thanks
Bookmarks