Shapes not resizing/staying with pertinent row when "unhide" rows is done

wbstadeli

Board Regular
Joined
Mar 11, 2016
Messages
153
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a worksheet that has been working great until recently, and I cannot seem to figure out what I changed so this no longer works. Basic concept of what it is doing and the current issue: There is code that copies a named range, which has hidden rows that have shapes in those specific rows (these shapes run separate macros). The properties of the shapes are indeed "Move and size with cells". However when this named range is copied (that has the hidden rows inside that range) when i "unhide" those rows the shape is suppressed to a "zero" height at the top of row that was just made to "unhide". Does anyone know how to correct this issue? I'm using Microsoft excel 2016. Thanks!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Strange that it should just happen. Not sure if Microsoft provided an update to your version of Excel recently?

What happens when you manually increase the height of one of these shapes. Then hide the row again and unhide? Does the height then go back to normal, or does it again go to 0?
 
Upvote 0
Sorry for the late reply. If I manually resize it seems to be working properly, ill have to take a closer look at my code to see if I can determine when this issue happens.
 
Upvote 0
You can loop through each of the shapes to determine which is in the row that is unhidden, then set its width and height to the correct number
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,246
Members
449,075
Latest member
staticfluids

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