Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Fill formuls plus one

I am using the following to put a formula in the first cell and copy it down
to the other cells. It is working good, but I need it to copy one cell
further than it does. Any way to force it?

Range("E2:E" & Range("D65536").End(xlUp).Row).FormulaR1C1 = _
"=IF(RC[-1]0,TODAY()-(RC[-1]+30),"" "")"

Thank you very much!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default Fill formuls plus one

Jasmine,

You can use the offset function (search for "Offset" in the VBA help).

Modifying your code to insert a '.offset(1,0)' beween the 'End(xlup)' and
the '.Row' should do what you want it to.

Range("E2:E" & Range("D65536").End(xlUp).Offset(1, 0).Row).FormulaR1C1 =
"=IF(RC[-1]0,TODAY()-(RC[-1]+30),"" "")"


Mike

"Jasmine" wrote:

I am using the following to put a formula in the first cell and copy it down
to the other cells. It is working good, but I need it to copy one cell
further than it does. Any way to force it?

Range("E2:E" & Range("D65536").End(xlUp).Row).FormulaR1C1 = _
"=IF(RC[-1]0,TODAY()-(RC[-1]+30),"" "")"

Thank you very much!

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
Inserting date from formuls TechGuy[_2_] Excel Discussion (Misc queries) 1 February 3rd 10 09:30 PM
Formuls to turn date red John M. Excel Discussion (Misc queries) 1 January 27th 07 06:02 PM
Formating Font in a Formuls Silvanus New Users to Excel 5 December 9th 05 03:22 PM
Formuls updating Adam Excel Worksheet Functions 2 October 19th 05 07:49 PM
how do I do a formuls in excel such as (if a1=somthing then b1=a . Brett Excel Worksheet Functions 3 January 9th 05 08:15 PM


All times are GMT +1. The time now is 10:27 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"