Try something like this:
Sub HideSheet()
Sheets("Sheet2").Visible = xlSheetVeryHidden
End Sub
Hide it, then protect the sheet. Also, one option, before you hide it, make its width to 0.15 or something like that, then hide it. You could also use a macro to determine everytime the activecell changes (SelectionChange()) if the column is hidden, and if not, hide it again.
Juan Pablo G.
I need the sheet to be visible. I only want to hide column A. Is there a way to hide a column in VBA?
Thanks again.
Columns(1).Hidden = True [NT]
Thanks again. : Try something like this
Thanks Juan Pablo, I misread the question and answered for the entire sheet, not just for one column as he asked. :)
Tom U.
How do I hide the column in VBA. Sorry, I'm a novice. I tried and got an error as mentioned before.
Thanks! Hide it, then protect the sheet. Also, one option, before you hide it, make its width to 0.15 or something like that, then hide it. You could also use a macro to determine everytime the activecell changes (SelectionChange()) if the column is hidden, and if not, hide it again. Juan Pablo G. : How can I make column A "xlVeryHidden"? : I tried columns(A,A)visable = xlVeryHidden
Thanks! : Hide it, then protect the sheet. Also, one option, before you hide it, make its width to 0.15 or something like that, then hide it. You could also use a macro to determine everytime the activecell changes (SelectionChange()) if the column is hidden, and if not, hide it again. : Juan Pablo G.