Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 97 - Access Violation

Status
Not open for further replies.

Phoenix22

Technical User
Sep 23, 2003
29
CA
Hello,

I wrote a macro last week (which worked fine). Now when I run it, I keep getting the "Access violation at 0 x c000005" error message.

The code screws up at the following line:
ActiveCell.FormulaR1C1 = average_formula

I've tried subsituting the above with the below and it still screws up:

Cells(row_index, ccspernas_col) = average_formula

I have verified manually that the average formula is referring to correct cell references.

Any help would be much appreciated, thanks.


 
not too sure
access violation may refer to ram access violation i.e. an OS fault i.e windows re-install?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top