#REF! errors after running macros

CathieW

New Member
Joined
May 18, 2011
Messages
2
Hi, I hope someone can shed some light on this problem, which is driving me nuts!

I'm creating a multi tab workbook with macros, and some tabs have vlookups which point to the cells refreshed by the macros.

As these cells are deleted before being repopulated by the macro, the formula is returning a #REF! error (and the cell references in the formula all change to #REF!) - how do I set the formula to use the new information please?

If that doesn't make sense, please tell me, I'm not very good at describing problems without having someone looking over my shoulder who I can demonstrate things to!

Thanks very much :)
Cath
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi Cath

Description is fine. Please can you post a sample of the formulas you are using (ie the formula text as it appears in the formula bar) and also the code of the macro that deletes the cells.
 
Upvote 0
don;t delete the cells. If you want to get rid of the data then choose 'clear contents' instead. this will preserve the integrity of the data
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,278
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top