I've got some strange goings on with my macros. There doesn't seem to be any specific instruction that's causing problems but there is definately a problem. I make Excel invisible when I run my macros as several workbooks are opened and things can get a bit flashy and sore on the eyes.
I've completed my code and am busy testing and have come across a bit of a problem. When I run my Excel macros and let Excel have the focus, they run fine, no probs, does what I want, doesn't do what I don't want, ideal.
However, when I run my macros and something else has the focus, say Outlook, ie Excel is running in the background, then I get errors. This seem to be with the Autofill command, or when inserting a full column, and sometimes when there is a With Selection.xxx commands.
Should macros be run in foreground or in the background, or does it depend on how they are coded?
Does anyone know of any issues?
I've completed my code and am busy testing and have come across a bit of a problem. When I run my Excel macros and let Excel have the focus, they run fine, no probs, does what I want, doesn't do what I don't want, ideal.
However, when I run my macros and something else has the focus, say Outlook, ie Excel is running in the background, then I get errors. This seem to be with the Autofill command, or when inserting a full column, and sometimes when there is a With Selection.xxx commands.
Should macros be run in foreground or in the background, or does it depend on how they are coded?
Does anyone know of any issues?