I am using the OutputTo in a macro and the file already exists so after the OutputTo I am trying to send "Y" to tell it to overwrite the old file and it doesn't work. Any ideas?
I wish SetWarnings worked that way. It appears that SetWarnings is only for "...about to delete a table" It has no affect when you are about to "OutputTo" a file. I have this in the beginning of each Macro though. I read something at Microsoft KB but can't find it again.
SendKeys is VERY dangerous. It will send to the active window so if you click somewhere else, that window will perform the keystrokes sent. It allows the possibility of all sorts of nasty stuff happening (e.g Send delete key when in Windows Explorer).
You really need to look at Transfer(Text|Spreadsheet) in Macros.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.