Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default Edate Question

Wow you answered fast, Oh that's what i did thank you, your a star it works
fine now.

"Dave Peterson" wrote:

You didn't use the correct syntax for the R1C1 reference style:

ActiveCell.Offset(0, 3).FormulaR1C1 _
= "=MAX(0,NETWORKDAYS(TODAY(),(Edate(R[-6]C,6))))"

r[-6]c[0] is the same as plain old r[-6]c.



Leon wrote:

Hello

I have have this formula:

Sub HoldingShelf()
ActiveCell.FormulaR1C1 = "HOLDING SHELF"
ActiveCell.Offset(0, 1).FormulaR1C1 = "=NOW()"
ActiveCell.Offset(0, 2).Interior.ColorIndex = 15
ActiveCell.Offset(0, 3).FormulaR1C1 =
"=MAX(0,NETWORKDAYS(TODAY(),(Edate(E45,6))))"
End Sub

it works fine if i enter the cell refferance self but i want to use it in a
macro. so i need the Edate part to be offset so where ever i use the macro it
will use the offset cell is this possible?

I tried using =MAX(0,NETWORKDAYS(TODAY(),(Edate(R[-6];C[0],6))))" but it
gives me a range of cells and i just need a single cell.

Any help would be much appreciated.

Thanks


--

Dave Peterson

 
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
Edate Formula ROSE2102 Excel Discussion (Misc queries) 2 January 20th 06 06:47 PM
EDATE Problem pknivens Excel Discussion (Misc queries) 4 December 9th 05 10:56 AM
edate function Candace Excel Worksheet Functions 2 November 2nd 05 09:07 PM
EDATE Droodhall Excel Worksheet Functions 2 August 31st 05 05:29 PM
#NAME? error using EDATE Zimbob79 Excel Discussion (Misc queries) 2 March 26th 05 03:02 AM


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