Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Rick, Give this a try. Sub Fix_Dash() Dim n As Integer, Cell_Value As String, Cell_Temp As String, Dash_Place As Integer For n = 1 To 1000 Cell_Value = Range("A" & n).Value Dash_Place = InStr(1, Cell_Value, "-") If Dash_Place 0 Then Cell_Temp = "-" & Left(Cell_Value, Dash_Place - 1) Range("A" & n).Value = Cell_Temp End If Next End Sub -- Peter81 ------------------------------------------------------------------------ Peter81's Profile: http://www.excelforum.com/member.php...o&userid=25353 View this thread: http://www.excelforum.com/showthread...hreadid=388345 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dash Ports | Excel Worksheet Functions | |||
dash | Excel Worksheet Functions | |||
adding a dash | Excel Discussion (Misc queries) | |||
Dash in format | Excel Discussion (Misc queries) | |||
understanding dash dash in a excel formula | Excel Worksheet Functions |