Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My macro stops for confirmation - and I want to stop it

Status
Not open for further replies.

hpl2001

Programmer
Dec 18, 2001
105
CA
I am running a macro in Excel 2003. When the following code is executed ---


Selection.TextToColumns Destination:=Range("C1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1))


--- a dialog box pops up asking me to verify the column move. How can I get it to stop asking and just do it?

TIA

Holly
 
Did you try to play with the Application.DisplayAlerts property ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hi Holly,

just add
Code:
Application.DisplayAlerts=False
at the beginning of your macro and of course
Code:
Application.DisplayAlerts=True
at the end of it.

Cheers,
MakeItSo

“Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.” (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.
 
That's exactly what I was looking for. Thank you!

H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top