Disabling a Message Box / Warning Message?

unit213

Active Member
Joined
Jul 11, 2003
Messages
427
I have a macro that executes a series of queries (no modules or VBA code).
I use OutputTo to output an Excel file at the end of the macro. Each time the
macro is run, it overrides the previous Excel file. How would I go about turning
off this warning?

2r792ea.jpg


I searched the following thread and tried a few of the techniques mentioned, but I haven't been successful
at this point.

http://www.mrexcel.com/forum/showthread.php?t=352639&highlight=disable+warnings
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I see what you mean, even using SetWarnings "No" does not work. However, if I exported to an Excel file using the "TransferSpreadsheet" Action instead of the "OutputTo" Action, I do not get that warning.

Will that work for you? I am really not sure what difference there is in using TranferSpreadsheet instead of OutputTo to create an Excel file, if any.
 
Upvote 0
Please forgive my Access skills (newbie). I'm trying to test the 'TransferSpreadsheet'
action. However, I don't think I have the parameters set correctly since the file isn't writing
out. Here's what I've got:

Transfer Type: Export
Spreadsheet Type: Excel Workbook
Table Name:
File Name: \\snas1\Production\Casting DOH Output.xls
Has Field Names: no
Range:
 
Upvote 0
I found myself encountering this issue again and I'm hoping that there is a solution.
Previously, I programmed around the problem. This time I need to find a fix.
Perhaps there is a program, similar to 'ClickYes' that will work?

Has anyone found a solution for this? Any input would be greatly appreciated!

Thanks.

Dan
 
Upvote 0
Why do you think you need to use "OutputTo" instead of "TransferSpreadsheet"?
A "ClickYes" type of solution seems like it would be more of a workaround than "TransferSpreadsheet".
 
Upvote 0
Joe,

I'm outputting a PDF file, not a spreadsheet. I'm not familiar with another way to ouput a PDF other than 'OutputTo'.
I'm ok with a band-aid too if there is one out there as opposed to an actual solution. The 'ClickYes' program works quite well.
Something along those lines would be great too.
 
Last edited:
Upvote 0
Upvote 0
Thanks Joe. I'll do a little reading to see if I can use any of the code in the links you posted.
 
Upvote 0

Forum statistics

Threads
1,203,461
Messages
6,055,559
Members
444,798
Latest member
PAO1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top