Whoops, you said you wanted a macro. Try this, from the macro recorder and
assigned a keyboard shortcut of ctrl+m.
Sub Macro3()
'
' Macro3 Macro
' Macro recorded 11/9/2009 by L. Howard Kittle
'
' Keyboard Shortcut: Ctrl+m
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), TrailingMinusNumbers:=True
End Sub
HTH
Regards,
Howard
"cheri gemini" <(E-Mail Removed)> wrote in message
news:4FA18955-6C12-41CB-99DC-(E-Mail Removed)...
>I copy data from our main frame and the number results for negative numbers
> show the "-" sign behind the number. Excel considers this a text field.
> I
> tried copying a macro but the answer is always -1.23 even if I start with
> 456-. I want to convert the number when my cursor is on the field and I
> select a unique ctrl F function.
>
> Any suggestions?
|