Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Great. That one works a treat. Thanks Bob , please ignore the later question.
Problem solved. "Bob Phillips" wrote: With Range(Cells(1, 17), Cells(LastRow, 17)) .FormulaR1C1 = "=MID(RC[-2],FIND(""."",RC[-2],1)-1,3)" .Value = .Value End With -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Alan M" wrote in message ... I tried it again and the code runs......however it places the FORMULA not the resulting value in the destination range. "Bob Phillips" wrote: Range(Cells(1, 17), Cells(LastRow, 17)).FormulaR1C1 = _ "=MID(RC[-2],FIND(""."",RC[-2],1)-1,3)" -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Alan M" wrote in message ... Hi, I am using the following formula, kindly provided on this forum) to return some code from a string in cell D1 =MID(D1,FIND(".",D1,1)-1,3) However when I try to use this to set the formula in column F using VBA code as shown he Range(Cells(1, 17), Cells(LastRow, 17)).FormulaR1C1 = "=MID(RC[-2],FIND(".",RC[-2],1)-1,3) ... I get a syntax error message returned. Anyone see what is wrong please? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run Part of a Code If Q | Excel Programming | |||
Need code to replace part of a range within a formula with a defined name | Excel Programming | |||
Formula for Extracting Alphabetic Part of a Product Code | Excel Worksheet Functions | |||
Formula for Extracting Alphabetic Part of a Product Code | Excel Worksheet Functions | |||
Formula for Extracting Alphabetic Part of a Product Code | Excel Worksheet Functions |