How to hide columns and the don't skip columns letters

Stevekent

Board Regular
Joined
Jul 24, 2013
Messages
92
Office Version
  1. 365
Platform
  1. Windows
I want to hide a few columns in my worksheet but I don’t want others to know I hide the columns. People would notice that the columns been hided simply by looking at the columns letter as those hide columns their header letter skipped. </SPAN>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
You could hide all the row & column lables, but someone could just add them back in. Short answer is you can't do this reliably.
 

ExcelTactics

Board Regular
Joined
Sep 4, 2013
Messages
146
It's not possible, strictly speaking, to hide rows and columns discretely. It is your spreadsheet, however, so I'd suggest you consider moving the data you want hidden to another place on the sheet, another sheet all together, or a completely different workbook and just reference it in the formulas of any affected totals/calculations. Data sources can be obfuscated and hidden in a number of ways, depending on the sophistication of your audience...
 

dispelthemyth

Well-known Member
Joined
Mar 16, 2006
Messages
654
As has been said, its not really possible to hide without someone noticing or altering the spreadsheet so it looks different

You could try the below that hides the column then the headings, but your users might want the headings for reference
Code:
Sub hidec()


Sheet1.Unprotect Password:="aa"
Sheet1.Range("G:G,Q:Q,Y:Y").EntireColumn.Hidden = True
ActiveWindow.DisplayHeadings = False
Sheet1.Protect Password:="aa"
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,129,593
Messages
5,637,294
Members
416,963
Latest member
zazama

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
Top