+ Reply to Thread
Results 1 to 8 of 8

Changing Borders in Mac Excel 2011

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Changing Borders in Mac Excel 2011

    This macro works except the border color is black (or some other very dark color) instead of the color palette (Orange) Accent6, Darker 50%. How do I get the desired Accent/Darker color?

    Please Login or Register  to view this content.
    Last edited by Phil Hageman; 03-16-2014 at 07:30 AM. Reason: Rule 3 requirement

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Changing Borders in Mac Excel 2011

    Hi, Phil Hageman,

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Changing Borders in Mac Excel 2011

    See code update

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Changing Borders in Mac Excel 2011

    Hi, Phil Hageman,

    I donīt know if it will work on a MAC but it does on a Win system:
    Please Login or Register  to view this content.
    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Changing Borders in Mac Excel 2011

    HoHoBe,

    Thanks for your help. Had to make one change: With Selection.Borders(xlEdgeBottom) Added the word Selection

    This works when a single cell is selected, Is there a way for it to work for any number of ranges selected - where all cells would be formatted?

    And can you tell me the number to use for Accent6, Lighter 40%? Is there a palette somewhere where I can get these numbers?

    Regards,
    Phil
    Last edited by Phil Hageman; 03-16-2014 at 08:43 AM. Reason: Changed Darker 50% to Lighter 40%

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Changing Borders in Mac Excel 2011

    Hi, Phil Hageman,

    no need for the change you made according to what I know about With-Statements.

    The code should work on any number of cells selected but only supply the underlining to the bottom row of the selection (at least that was what it did when I checked it). Caveat could be if you choose more than one area which do not intersect. The code should only work on the first area of the selection, you would need to loop through the Selection.Areas.

    Sorry, I donīt know about tany table holding the values.
    Please Login or Register  to view this content.
    should work for the alteration.

    Ciao,
    Holger

  7. #7
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Changing Borders in Mac Excel 2011

    This is strange. If I select a single cell it works okay, but if I select a range in a column, it blanks the bottom border.

    How do the numbers get selected?

  8. #8
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Changing Borders in Mac Excel 2011

    Hi, Phil,

    Tint And Shade should be any value between 1 (lighter) and -1 (darker), you may use 0.25 instead of 0.249946592608417 as an example.

    Ciao,
    Holger

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Problem when changing Macro from Excel 2007 (Windows) to Excel 2011 (Mac)
    By TrialandError80 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 01-02-2014, 07:26 AM
  2. Help with Date Macros - eg. Change Values From Jun 5, 2011 to 05/06/2011
    By Red2Black in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-14-2011, 08:44 AM
  3. Changing year from 2010 to 2011
    By ficino in forum Excel General
    Replies: 3
    Last Post: 12-26-2010, 12:35 PM
  4. Replies: 4
    Last Post: 10-10-2010, 01:34 PM
  5. [SOLVED] How do I keep borders from changing in page break preview?
    By ahp in forum Excel General
    Replies: 0
    Last Post: 11-21-2005, 03:25 PM

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