+ Reply to Thread
Results 1 to 7 of 7

Remove grid lines for a specified area on multiple sheets

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Remove grid lines for a specified area on multiple sheets

    I have this code to delete grid lines in some of the cells I need. Can anyone help me on how to automate this to delete the grid lines for all active worksheets?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Remove grid lines for a specified area on multiple sheets

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Re: Remove grid lines for a specified area on multiple sheets

    This code implements it for the sheet I am currently on but doesn't do it continuously for the other sheets in the document.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Remove grid lines for a specified area on multiple sheets

    Are you sure? I just doubled checked it on a new workbook and it changed all 3 sheets.

  5. #5
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Re: Remove grid lines for a specified area on multiple sheets

    It is also giving me an error in the ' .ColorIndex = 0 ' part for some odd reason

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Remove grid lines for a specified area on multiple sheets

    As I said, it worked fine when I tested it, can you post your workbook with the code as you are using it in included (removing any sensitive information)?

    To upload a workbook, when replying click go advanced and then go to attachments.

  7. #7
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Re: Remove grid lines for a specified area on multiple sheets

    It's fine the code works now. I had typed it out and put 'Color' as 'Colour'. My mistake, thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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