View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Stig[_3_] Stig[_3_] is offline
external usenet poster
 
Posts: 1
Default VB select OK from a prompt when running a macro

Hi,

I am writing a VB macro to format a large amount of data in MS Excel
2000.

Part of the macro uses the 'Text to Columns' function, however, when
running the macro the prompt "Do you want to replace the contents of
the destination cells?" appears when the macro gets to the 'Text to
Columns' command in the code.

Is there a way that I can write the macro to always select 'OK' at this
point and keep running.

Thanks in advance, any help is appreciated.