make formula work whith autofill

Hi experts I have following formula that VBA puts in a cell, after that VBA does a autofill
 "=SUMPRODUCT((WEEKDAY(ROW(INDIRECT(R[-1]C-DAY(R[-1]C)+1 & "":""&DATE(YEAR(R[-1]C),MONTH(R[-1]C)+1,0))))={2,3,4,5,6})*(COUNTIF(Feestdagen!R[-2]C[-2]:R[105]C[-2],ROW(INDIRECT(R[-1]C-DAY(R[-1]C)+1&"":""&DATE(YEAR(R[-1]C),MONTH(R[-1]C)+1,0))))=0))"

The Feestdagen!R[-2]C[-2]:R[105]C[-2] should be altered so when it is pasted in FormulaR1C1 the formula shows like Feestdagen!$A1:$A108


Eric ZwiekhorstSAP Business ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rory ArchibaldCommented:
Change both C[-2] bits to C1
Eric ZwiekhorstSAP Business ConsultantAuthor Commented:
Hi Rorya
I tried this but after changing the cell will no longer accept the formule and stays empty?


Eric ZwiekhorstSAP Business ConsultantAuthor Commented:
Hi Rorya,

I tried to change it afterwarts and that works but it is not the right approach.
should be Ok from the start

Selection.Replace What:="A1", Replacement:="$A1", LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _


Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

Rory ArchibaldCommented:
What exactly did you change it to?
Rory ArchibaldCommented:
It should have been:

"=SUMPRODUCT((WEEKDAY(ROW(INDIRECT(R[-1]C-DAY(R[-1]C)+1 & "":""&DATE(YEAR(R[-1]C),MONTH(R[-1]C)+1,0))))={2,3,4,5,6})*(COUNTIF(Feestdagen!R[-2]C1:R[105]C1,ROW(INDIRECT(R[-1]C-DAY(R[-1]C)+1&"":""&DATE(YEAR(R[-1]C),MONTH(R[-1]C)+1,0))))=0))"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eric ZwiekhorstSAP Business ConsultantAuthor Commented:
Thanks Rorya
that was what  needed.
Would be great if all my question would be answered so swift..
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.