Macro not working

Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
422
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all,

I have this macro that i recorded, and it produced this code:

1651746132384.png


However, when I use it, it just erases everything in column E and does not paste the data from column F at all!

please help me fix it`??

this is my setup, with the macro being called "update", as you can see, my cells are all blank in column E :(

1651746213409.png
 
When you have hidden rows the copy will only copy the visible cells, but will paste those values in the other column starting in E1 regardless of whether the row is hidden or not.
ah that makes sense because something was pasted when I unhid my rows and looked at cell E2, E3, E4 etc.

seemed very weird

thank you fluff!

Is there any way in which I can update the macro so it will work with filters on?
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Is there any way in which I can update the macro so it will work with filters on?
Not that I know of, short of looping through all visible cells. Removing the filter would be quicker & easier.
 
Upvote 0
Solution
Not that I know of, short of looping through all visible cells. Removing the filter would be quicker & easier.
okay thank you Fluff! I will look into potential better solutions, but use the file unfiltered for now :)
 
Upvote 0

Forum statistics

Threads
1,215,390
Messages
6,124,667
Members
449,178
Latest member
Emilou

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