View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 1,726
Default Need VBA for a worksheet function

What is the rule for determining the Range each month?

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"xjetjockey" wrote in message
ups.com...
As a beginner I'm coming along nicely with my VBA project, but I'm
befuddled on how to write the code for the following function. I am
attempting to write a procedure which will enter this (and other
formulas) into selected cells at the first of each month. The formulas
will be autofilled to the subsequent row on the next day. The problem
is that the row numbers change each month. I can determine starting
and ending row numbers with VBA The columns will always stay the same.


How do I write a formula to reference the rowsI identified in VBA? How
do I handle absolute and relative rows?

This is one of the formulas:

=FORECAST($A$335,$R$316:$R317,$A$316:$A317)

Any help would be greatly appreciated.

Robert