Hidden columns not formatted.

woon8888

New Member
Joined
May 18, 2022
Messages
13
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hi Experts,

will like to ask a question? initially when i program my VBA to insert a colored row in a hidden column sheet.

for e.g. columns B:E is hidden.

when i insert a blue colored row, the columns B:E even though hidden it's supposed to be blue colored.
but at times it's not. Why is that so? sometimes it's full sometimes it's not.


hidden
1697508418377.png


unhidden
1697508443091.png
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Question cannot be answered without seeing the code you are using.
 
Upvote 0
Hi, apologies. My vba

sheet1.Rows("3:4").Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
sheet1.Range("A3:J4").Interior.color = 11848959
sheet1.Range("A1:J12").Copy sheet2.Range("A1")

the sheet2 A1:J12 is not showing full colored cells, it's showing truncated color cells.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,976
Members
449,095
Latest member
Mr Hughes

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