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
 
Grt.. yes it works.........

Norman Jones said:
Hi Aziz,

Try:

Application.DisplayAlerts = False

'Your TextToColumns code

Application.DisplayAlerts = True
 
Grt.. yes it works.........

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

HTH
--
AP

"Aziz Ahmedabadwala" <[email protected]> a écrit
dans le message de (e-mail address removed)...
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top