View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Norman Jones Norman Jones is offline
external usenet poster
 
Posts: 5,302
Default Click "Ok" without prompting - Macro

Hi Aziz,

Try:

Application.DisplayAlerts = False

'Your TextToColumns code

Application.DisplayAlerts = True


---
Regards,
Norman



"Aziz Ahmedabadwala" wrote in
message ...
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.