Disable hide for a column

  • Thread starter Thread starter Michael Singmin
  • Start date Start date
M

Michael Singmin

Hello Group,

When selecting a column and Right clicking, how does one disable (grey
out) the the Hide/Unhide commands ?

Thanks,

Michael Singmin
 
The easiest way is to protect the worksheet (Tools, Protection, Protect
Sheet).

Otherwise you'd have to use code like this:

CommandBars("Column").Controls("Hide").Enabled = False

But you have to reset this (when your app closes, if not sooner) or the user
will be stuck with this.

--
Jim Rech
Excel MVP
| Hello Group,
|
| When selecting a column and Right clicking, how does one disable (grey
| out) the the Hide/Unhide commands ?
|
| Thanks,
|
| Michael Singmin
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top