Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi i am having trouble putting this formula in my code any idea where i have gone wrong
Cells(intRowCount + 1, 4) = WorksheetFunction.Substitute(Substitute(A4, "Total Amount - ", ""), " USD [Mln]", "") * Pls hel |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try replacing A4 with Range("A4") -- Regards Frank Kabel Frankfurt, Germany "Kevin" schrieb im Newsbeitrag ... Hi i am having trouble putting this formula in my code any idea where i have gone wrong? Cells(intRowCount + 1, 4) = WorksheetFunction.Substitute(Substitute(A4, "Total Amount - ", ""), " USD [Mln]", "") * 1 Pls help |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Kevin,
Cells(intRowCount + 1, 4).Value = Application.WorksheetFunction.Substitute(Applicati on.WorksheetFunction.Subst itute(Range("A4").Value, "Total Amount - ", ""), " USD [Mln]", "") * 1 or you can use VBA's Replace function instead of the Substitute worksheetfunction. HTH, Bernie MS Excel MVP "Kevin" wrote in message ... Hi i am having trouble putting this formula in my code any idea where i have gone wrong? Cells(intRowCount + 1, 4) = WorksheetFunction.Substitute(Substitute(A4, "Total Amount - ", ""), " USD [Mln]", "") * 1 Pls help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Convert Array Formulas to Regular Formulas | Excel Worksheet Functions | |||
E2007 formulas display as formulas, not results | Excel Worksheet Functions | |||
Counting # of Formulas in a column with formulas and entered data | Excel Worksheet Functions | |||
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP | Excel Worksheet Functions | |||
Formulas not evaluated, Formulas treated as strings | Excel Discussion (Misc queries) |