VBA button that "delete and shift cell up" without shifting all ref to that cell up

TBC5

New Member
Joined
Jun 27, 2022
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Hi Everyone,
my probleme is that when when i shift cell up using a VBA button all the formula using that cell as to do calculation become #ref! because the ref have shifted up by one cell.

The formula i use to delete and shift cell up:
Range("B6").Delete (xlUp)

Example :
i want to delete the Num1 and num2 of Obj 1 because i don't need it anymore and make Obj2 become Obj1 and Obj3 become Obj2
so i use a VBA button that will delete Num1 and num2 of Obj 1 and Shift cell up
1656378572132.png

But when i shift cell up, the ref of num1+num2 shift too.
1656378549762.png


So i want to delete and shift cell up without ref shifting up too
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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