Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I'm trying to place a formula in a cell but I don't have a constant location of the row for the cell. See the code below as an exmple: ActiveCell.FormulaR1C1 = "=LEFT(R[YTDOrig]C[4],LEN(R[YTDOrig]C[4])-1)" How can I place a formula in a cell to achieve the results attempted by this code in an allowable syntax? Frank |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe...
ActiveCell.FormulaR1C1 = "=LEFT(R[" & YTDOrig & "]C[4],LEN(R[" _ & YTDOrig & "]C[4])-1)" wrote: I'm trying to place a formula in a cell but I don't have a constant location of the row for the cell. See the code below as an exmple: ActiveCell.FormulaR1C1 = "=LEFT(R[YTDOrig]C[4],LEN(R[YTDOrig]C[4])-1)" How can I place a formula in a cell to achieve the results attempted by this code in an allowable syntax? Frank -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jan 25, 8:01*pm, Dave Peterson wrote:
Maybe... ActiveCell.FormulaR1C1 = "=LEFT(R[" & YTDOrig & "]C[4],LEN(R[" _ * * * * * * * * * * * * * * * & YTDOrig & "]C[4])-1)" wrote: I'm trying to place a formula in a cell but I don't have a constant location of the row for the cell. See the code below as an exmple: ActiveCell.FormulaR1C1 = "=LEFT(R[YTDOrig]C[4],LEN(R[YTDOrig]C[4])-1)" How can I place a formula in a cell to achieve the results attempted by this code in an allowable syntax? Frank -- Dave Peterson IT WORKED!! Thanks for your help. Frank |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Placing button at cell's location | Excel Programming | |||
click on cell it goes to formula location?? | Excel Programming | |||
Changing Cell location within a formula | Excel Programming | |||
How can a formula get the location of the cell it is placed in? | Excel Programming | |||
placing a pull-down menu at a cell location automatically | Excel Programming |