+ Reply to Thread
Results 1 to 7 of 7

Hiding the Headings, Gridlines & Formula bar

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    13

    Hiding the Headings, Gridlines & Formula bar

    Dear All,

    Please suggest me marco code for Hiding the the Headings, Gridlines & Formula bar.
    Regards
    Suresh G

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Hiding the Headings, Gridlines & Formula bar

    Hi Suresh,

    Did you try recording a macro of you performing those steps? It provides the code you'll need to add to a macro.
    Please Login or Register  to view this content.
    Note: If other users are going to be accessing this workbook, you'll want to add code to set them back to True whenever they deactivate the workbook that includes the code - otherwise they'll open other workbooks and these objects will be hidden there, too.

  3. #3
    Registered User
    Join Date
    08-04-2009
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Hiding the Headings, Gridlines & Formula bar

    Dear Paul,

    Basically i don't know how to record the marco. I copied the code which you provided and opened the new excel workwook and hitted Alt+F11 and pasted there. It is not working. can you provide me any link to learn Marco from basic.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Hiding the Headings, Gridlines & Formula bar

    I really don't think that you should be messing around with user settings like this. You need to be able to restore all setting.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Hiding the Headings, Gridlines & Formula bar

    Did you run the macro after pasting it into the VB Editor?

  6. #6
    Registered User
    Join Date
    02-29-2012
    Location
    India, Bangalore
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    21

    Re: Hiding the Headings, Gridlines & Formula bar

    You can easily record Macro Using Developer -> Record new Macro -> Just click Ok & continue with Your work. It will create the macro coding what you had worked out. Thn you can run the macro when ever you required.
    Note: Pls check that you have enabled your macro settings.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Hiding the Headings, Gridlines & Formula bar

    You really don't need VBA to do this, just edit the worksheets manually to hide Gridlines, etc.

    I wouldn't recommend hiding the Formula Bar

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1