Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Range("A1").Select
Cells.REPLACE What:="1-", Replacement:="-1", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=True I want to use this formula to replace ALL cells where the "-" symbol is on the right by moving it to the left in front of the number. This formula works great, but only for cells with "1-"...if the number is any different I'd have to set it up for every possible number which would be a rediculously long macro. Any ideas on how I can modify this? THANKS!!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I replace a ' at the beginning of a text cell using Replace | Excel Discussion (Misc queries) | |||
Replace text with variable using VBA replace code? | Excel Programming | |||
How to Replace multiple words to replace using excell | Excel Programming | |||
find and replace - replace data in rows to separated by commas | Excel Worksheet Functions | |||
Replace method - cannot find any data to replace | Excel Programming |