Click "Ok" without prompting - Macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have created a Macro and i have used "Text to Column" option in it. Now
when i run the Macro it promts me if i want to "Replace the Contents of
Destination Cell". This should always be Yes.

Is there a way i can make this yes without it asking all the time. As this
will be used by multiple users i dont want them to be confused by this
question.

Does somebody have a solution???

Thanks & Regards,
Aziz.
 
Try:
application.DisplayAlerts = false
<your stuff>
application.DisplayAlerts = True

HTH
 
Hi Aziz,

Try:

Application.DisplayAlerts = False

'Your TextToColumns code

Application.DisplayAlerts = True
 
This works; however, my contents still do not 'replace'. What is missing?
When I perform Text to Column without the macro, the contents replace just
fine.

Mike
Portland,OR
 
Back
Top