melewie
Board Regular
- Joined
- Nov 21, 2008
- Messages
- 188
- Office Version
- 365
- Platform
- Windows
Hi All,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
I’m having a problem building a error trap in a "simple" macro. I want the macro to bring up a message box if there is no column selected. But having trouble making this happen<o></o>
i.e. <o></o>
<o></o>
If Selection = ISNT A FLAMING COLUMN Then Goto Error_Trap
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 1)
Exit Sub
Error_Trap:
MsgBox "HI"
Any help would be great.
<o></o>
I’m having a problem building a error trap in a "simple" macro. I want the macro to bring up a message box if there is no column selected. But having trouble making this happen<o></o>
i.e. <o></o>
<o></o>
If Selection = ISNT A FLAMING COLUMN Then Goto Error_Trap
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 1)
Exit Sub
Error_Trap:
MsgBox "HI"
Any help would be great.