Okay, this will be strange.
I have a couple of tabs in an excel workbook that all have merged cells and I am using VBA to auto-fit and hide rows.
On one of the tabs, the VBA works.
But on the other tab, the very first cell fails to auto-fit, but the second cell works properly.
Code for first tab (this one, "b4" fails, but "b8" works:
On this tab, the code is essentially the same.![]()
Please Login or Register to view this content.
All of it works properly.
You'll note, the section that is auto-fitting is EXACTLY the same.![]()
Please Login or Register to view this content.
The tabs have the same formatting, same column width, same same same.
I can even copy / paste the VBA from the working tab, to the one that doesn't work, and it will fail again.
Am I going nuts here? Is there something obvious that I am missing?
I actually have a third tab with very similar code with different cells referenced. It too works properly.
The workbook is much to large to upload and contains sensative data.
Bookmarks