When I use Sheets("Sheet2").Delete the macro pauses and states
there may be data blah blah do you want to delete?
How do I Tell the macro to auto click yes?
When I use Sheets("Sheet2").Delete the macro pauses and states
there may be data blah blah do you want to delete?
How do I Tell the macro to auto click yes?
Hi mpeplow
Use
Application.DisplayAlerts = False
Delete code
Application.DisplayAlerts = True
--
Regards Ron de Bruin
http://www.rondebruin.nl
"mpeplow" <[email protected]> wrote in message
news:[email protected]...
>
> When I use Sheets("Sheet2").Delete the macro pauses and states
>
> there may be data blah blah do you want to delete?
>
> How do I Tell the macro to auto click yes?
>
>
> --
> mpeplow
> ------------------------------------------------------------------------
> mpeplow's Profile: http://www.excelforum.com/member.php...o&userid=34812
> View this thread: http://www.excelforum.com/showthread...hreadid=569623
>
Hi mpeplow
Use
Application.DisplayAlerts = False
Delete code
Application.DisplayAlerts = True
--
Regards Ron de Bruin
http://www.rondebruin.nl
"mpeplow" <[email protected]> wrote in message
news:[email protected]...
>
> When I use Sheets("Sheet2").Delete the macro pauses and states
>
> there may be data blah blah do you want to delete?
>
> How do I Tell the macro to auto click yes?
>
>
> --
> mpeplow
> ------------------------------------------------------------------------
> mpeplow's Profile: http://www.excelforum.com/member.php...o&userid=34812
> View this thread: http://www.excelforum.com/showthread...hreadid=569623
>
Hi mpeplow
Use
Application.DisplayAlerts = False
Delete code
Application.DisplayAlerts = True
--
Regards Ron de Bruin
http://www.rondebruin.nl
"mpeplow" <[email protected]> wrote in message
news:[email protected]...
>
> When I use Sheets("Sheet2").Delete the macro pauses and states
>
> there may be data blah blah do you want to delete?
>
> How do I Tell the macro to auto click yes?
>
>
> --
> mpeplow
> ------------------------------------------------------------------------
> mpeplow's Profile: http://www.excelforum.com/member.php...o&userid=34812
> View this thread: http://www.excelforum.com/showthread...hreadid=569623
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks