Consulting

Results 1 to 4 of 4

Thread: Solved: How to automate Excel Tools-> Options

  1. #1
    VBAX Regular
    Joined
    Apr 2008
    Posts
    51
    Location

    Question Solved: How to automate Excel Tools-> Options

    Hi,,

    How do i set the "tools-> options -> view tab-> under windows options -> Row and column headers" programmatically when i open the excel file contain the code for this.
    My requirement is to hide the Row and column headers when i open the excel file containing this macro.


    Thanks and REgards,
    Krrishna

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Private Sub Workbook_Open()
    ActiveWindow.DisplayHeadings = False
    End Sub
    [/vba]

    This is workbook event code.
    To input this code, right click on the Excel icon on the worksheet
    (or next to the File menu if you maximise your workbooks),
    select View Code from the menu, and paste the code
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Apr 2008
    Posts
    51
    Location
    thank you.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Don't forget to mark the thraed as solved using the Thread Tools dropdown.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •