ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Ignoring Message (https://www.excelbanter.com/excel-programming/352165-ignoring-message.html)

katmando[_3_]

Ignoring Message
 

I've got a macro and part of it is meging cells, but everytime it does
this i get a message that i need to ok.

How can i get the code to "yes" this message on all occasions

Cheers
K


--
katmando
------------------------------------------------------------------------
katmando's Profile: http://www.excelforum.com/member.php...o&userid=29803
View this thread: http://www.excelforum.com/showthread...hreadid=507616


Executor

Ignoring Message
 
Hi Katando,

Try This:


Range("....").Select
Application.DisplayAlerts = False
Selection.Merge
Application.DisplayAlerts = True


This will not show the message at all.


Hoop this helps,



Executor


John[_88_]

Ignoring Message
 
Katmando,

Use the DisplayAlerts property of the Application object. So........

Sub KatmandoMacro()

Application.DisplayAlerts = False
'Your merge code
Application.DisplayAlerts = True

End Sub

Best regards

John

"katmando" wrote in
message ...

I've got a macro and part of it is meging cells, but everytime it does
this i get a message that i need to ok.

How can i get the code to "yes" this message on all occasions

Cheers
K


--
katmando
------------------------------------------------------------------------
katmando's Profile:
http://www.excelforum.com/member.php...o&userid=29803
View this thread: http://www.excelforum.com/showthread...hreadid=507616




katmando[_4_]

Ignoring Message
 

Thats what i was looking for

Thanks


--
katmando
------------------------------------------------------------------------
katmando's Profile: http://www.excelforum.com/member.php...o&userid=29803
View this thread: http://www.excelforum.com/showthread...hreadid=507616



All times are GMT +1. The time now is 09:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com