How to hide row/column labels from VBA?

  • Thread starter Thread starter ilia
  • Start date Start date
I

ilia

Hi everyone,

I've been looking around for this and experimenting with a few
techniques, but I cannot find the explicit answer to this one.

I want to hide the row/column labels in my dictator-style Excel 2003
application, using VBA. So, here are some questions, please let me
know if you know the answers:
* Are these part of CommandBars collection?
* If so, is there a systematic method for identifying them?
* Are there any application-wide restrictions that would cause
run-time errors, if one were to change their Enabled and/or Visible
setting?

Thanks in advance for any advice,

-Ilia
 
Ilia,

This toggles the row/column display on and off...
ActiveWindow.DisplayHeadings = Not ActiveWindow.DisplayHeadings

You cannot hide individual column or row headings.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"ilia" <[email protected]>
wrote in message
Hi everyone,
I've been looking around for this and experimenting with a few
techniques, but I cannot find the explicit answer to this one.
I want to hide the row/column labels in my dictator-style Excel 2003
application, using VBA. So, here are some questions, please let me
know if you know the answers:
* Are these part of CommandBars collection?
* If so, is there a systematic method for identifying them?
* Are there any application-wide restrictions that would cause
run-time errors, if one were to change their Enabled and/or Visible
setting?
Thanks in advance for any advice,
-Ilia
 
This is exactly what I was looking for. Thank you for your help.

-Ilia


"Jim Cone пиÑал(а):
"
 

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