+ Reply to Thread
Results 1 to 8 of 8

Macro for conditional formatting bottom border

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Macro for conditional formatting bottom border

    Hello,

    I wonder if it is possible to create a macro that would detect end page (jumping from page 1 to page 2 for instance) and add a bottom border at the last row of the page.

    I have attached a sample where I highlight in green the end of the page and added manually the bottom border (I did it only for the first end pages).

    I would really appreciate if you can help me with that?

    Many Thanks,
    Graig
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Macro for conditional formatting bottom border

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro for conditional formatting bottom border

    hi Graig, sort of that

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Macro for conditional formatting bottom border

    Hello watersev,

    It kind of work but I need to have the bottom line for the columns B:F. do you think it is possible?

    Thanks,
    Graig

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro for conditional formatting bottom border

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Macro for conditional formatting bottom border

    I only miss the B column. Otherwise it works nicely! I tried to modify your macro but I got lost it doesn't work for me :-S can you please help me?

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro for conditional formatting bottom border

    if to run the code in your posted file the line goes from B to H

  8. #8
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro for conditional formatting bottom border

    do you mean this?

    Please Login or Register  to view this content.

+ 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. conditional formatting bottom border
    By graiggoriz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-26-2014, 10:20 AM
  2. [SOLVED] Macro to sort a list with duplicates and add bottom border for last duplicate
    By kuntilfusk7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2012, 09:44 AM
  3. Macro to put bottom border at last row with data
    By daillest319 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2012, 10:53 AM
  4. Replies: 2
    Last Post: 07-27-2009, 09:29 AM
  5. Shared Top and Bottom Border - Bottom not printing
    By bick421 in forum Excel General
    Replies: 0
    Last Post: 01-07-2009, 03:47 PM

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