doubledaffy
Board Regular
- Joined
- Jan 22, 2010
- Messages
- 172
I have a rather unique problem with my macro. It is too extensive to post here so I'll try to explain it as clearly as I can.
The Setup: I have a bunch of formulas in row 3. The number can change, so the last column to the right is not static. The formulas refer to cells on another sheet, that can get deleted. When they get deleted I get the #Ref! warning. To avoid this I save the formulas using
The variable "LastCol" refers to the last column which as I mentioned before is dynamic. Later when I'm done doing all of the deleting, I fill the cells in again with their previously stored formulas. I just swap that previous equation around.
The Problem: It doesn't work. Whenever I execute the code it gives me the classic Runtime error.
The Super Problem: When I go to debug it and just step through it, it works fine.
Any ideas what the problem might be? I can try to provide more details if you need them.
The Setup: I have a bunch of formulas in row 3. The number can change, so the last column to the right is not static. The formulas refer to cells on another sheet, that can get deleted. When they get deleted I get the #Ref! warning. To avoid this I save the formulas using
Code:
Eqx=Worksheets("Virtual").Range(Cells(3,1),Cells(3,LastCol)).Formulas
The Problem: It doesn't work. Whenever I execute the code it gives me the classic Runtime error.
The Super Problem: When I go to debug it and just step through it, it works fine.
Any ideas what the problem might be? I can try to provide more details if you need them.