Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Insert Formulas into an Excel Column from ms Access 2007.

Avatar of bcreen
bcreenFlag for United States of America asked on
Microsoft AccessOffice ProductivityMicrosoft Development
1 Comment1 Solution741 ViewsLast Modified:
I'm using Access 2007 vba to manipulate an Excel spreadsheet.  Column A contains a column header: "Dates" and the rest of the column contains dates up to the first empty cell in that column.

I need to iterate from A2 thru the last date and - based on the date - place one of two formulas into column "N" of the same row.   If date is before 1/1/2004 I put one formula, else I use a different formula.

Can someone give me a  rough algorithm with the appropriate row/cell/range related functions to accomplish this?  I have code to determine the STRINGS that represent the formulas relative to the rows they will be placed into.

I'm referencing the Excel Object Library and already have quite a a bit of working code which manipulates, formats, inserts columns, sorts, etc, etc, so I'm not totally inexperienced.  Just need some hints :-)   Thanks!
Avatar of harfang
harfangFlag of Switzerland image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answers