Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default excel macro to move minus sign

I am importing numbers that has the minus sign to the right of the number. I
need a macro that can move the minus sign to the left of the number. I used
to have one but must have copied in incorrectly. What I has so far is..
Sub move_minus_left()
Dim currentcell As Object
For Each currentcell In Selection
If Right (currentcell.Value, 1)="-" Then
currentcell.formula="-"&left.

I really really need help with this as soon as possible. Thank you Very Much!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default excel macro to move minus sign

One way without a macro.

Select the data then DataText to Columns. Click Next twice to take you
to the Step3 screen. Click on Advanced. Make sure Trailing Minus for
Negative Numbers is checked. Click Ok and then Finish.

Hope this helps
Rowan

steve1961 wrote:
I am importing numbers that has the minus sign to the right of the number. I
need a macro that can move the minus sign to the left of the number. I used
to have one but must have copied in incorrectly. What I has so far is..
Sub move_minus_left()
Dim currentcell As Object
For Each currentcell In Selection
If Right (currentcell.Value, 1)="-" Then
currentcell.formula="-"&left.

I really really need help with this as soon as possible. Thank you Very Much!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Minus Sign JLMcCabes Excel Discussion (Misc queries) 1 March 30th 11 01:34 PM
Excel 2007 - display negative numbers with minus sign and parenthe Nadine Excel Discussion (Misc queries) 3 July 2nd 09 09:13 PM
I do not want the minus sign Steved Excel Worksheet Functions 5 December 8th 08 09:26 PM
minus sign tom mcdonald Excel Worksheet Functions 1 April 19th 06 09:58 AM
excel macro to move minus sign steve1961 Excel Programming 2 September 14th 05 10:44 PM


All times are GMT +1. The time now is 10:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"