Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Placing a formula in a cell of an unconstant row location


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Placing a formula in a cell of an unconstant row location

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Placing a formula in a cell of an unconstant row location

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Placing button at cell's location Greg Lovern Excel Programming 4 January 15th 08 08:10 PM
click on cell it goes to formula location?? choice[_2_] Excel Programming 1 April 15th 05 08:31 PM
Changing Cell location within a formula woknick[_2_] Excel Programming 3 July 28th 04 02:16 PM
How can a formula get the location of the cell it is placed in? Bernard[_4_] Excel Programming 3 February 16th 04 02:35 PM
placing a pull-down menu at a cell location automatically Ken Nysse Excel Programming 4 October 4th 03 06:51 PM


All times are GMT +1. The time now is 09:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"