+ Reply to Thread
Results 1 to 4 of 4

Need macro to add thick box border to certain cells - THANKS FOR THE HELP!!!

  1. #1
    Registered User
    Join Date
    02-25-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    25

    Need macro to add thick box border to certain cells - THANKS FOR THE HELP!!!

    Hi All,

    I want to thank you in advance for your help.

    I have attached a spreadsheet of what I am needing the macro to do. Essentially, whenever the macro searches column A and finds a new value, I need it to merge and center all rows in column A using the previous value. Then I need the macro to put a thick box border around the outside rows for the rows that were merged and centered. I hope this makes sense.

    I'm using Excel 2010 if that makes a difference in macro.

    Thanks!
    Jeff
    Attached Files Attached Files
    Last edited by Jeff M; 05-05-2011 at 10:24 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need macro to add thick box border to certain cells

    .....the rows that were merged and centered. I hope this makes sense
    Merging cells seldom makes sense!

    How many rows should your last entry "MNO CO" have?
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    02-25-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Need macro to add thick box border to certain cells

    The spreadsheet has a couple thousand rows. I have just cut a select few rows out to show as an example of what I would like the macro to do. But to answer your question, MCO CO should have 15 rows once it's been merged and centered.

    Thanks!

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need macro to add thick box border to certain cells

    Try this

    Because I can't determine where your sheet ends, put some text in Column A in the last row + 1 that you need merged anything will do e.g. "Stop"

    Then run this macro
    Please Login or Register  to view this content.

    If you don't define this last row, (effectively the next set to merge), the code will not format your last data group.

    Hope this helps.

+ 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