Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
A revised version to handle first row not being row 1...
Sub ParseCurrency() Dim vData, vTmp, n&, lStart&, lEnd&, lCol& With Selection: lStart = .Row: lCol = .Column: End With lEnd = Cells(Rows.Count, Selection.Column).End(xlUp).Row vData = Range(Cells(lStart, lCol), Cells(lEnd, lCol)) For n = LBound(vData) To UBound(vData) vTmp = Split(vData(n, 1), ": ") vData(n, 1) = Replace(vTmp(1), "*", "") Next 'n With Range(Cells(lStart, lCol), Cells(lEnd, lCol)) .Value = vData: .Style = "Currency" End With End Sub -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
converting number to dollar | Setting up and Configuration of Excel | |||
convert number to words(like 1.00 = Dollar One Only) | Excel Worksheet Functions | |||
Question For Importing Data Into Excel/Converting General Number to Dollar Amount | Excel Discussion (Misc queries) | |||
Converting currency from US Dollar into Canadian dollars from column A to Column B | Excel Worksheet Functions | |||
Converting 100 cents to 1 dollar | Excel Worksheet Functions |