Click "Ok" without prompting - Macro

  • Thread starter Aziz Ahmedabadwala
  • Start date
A

Aziz Ahmedabadwala

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.
 
A

Ardus Petus

Try:
application.DisplayAlerts = false
<your stuff>
application.DisplayAlerts = True

HTH
 
N

Norman Jones

Hi Aziz,

Try:

Application.DisplayAlerts = False

'Your TextToColumns code

Application.DisplayAlerts = True
 
A

Aziz Ahmedabadwala

Grt.. yes it works.........

Norman Jones said:
Hi Aziz,

Try:

Application.DisplayAlerts = False

'Your TextToColumns code

Application.DisplayAlerts = True
 
M

Mike Patterson

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
 
Top