+ Reply to Thread
Results 1 to 5 of 5

VBA to apply border on 3rd party worksheet

  1. #1
    Registered User
    Join Date
    10-23-2018
    Location
    Vancouver
    MS-Off Ver
    2016
    Posts
    3

    VBA to apply border on 3rd party worksheet

    I realize the easiest thing to do is to use conditional formatting, however in this case it won’t work quite so easy!

    I am creating new worksheets from a third party program, so the standard CF won’t work. Starting on Row 14: E14, will have data, then E16 could, or it may not have information until E21. The worksheet is dynamic, with as many as 70 lines, and I would like to have a top border applied to the entire row only if a cell in Column E has data in it. (Should mention that the cell is merged with D,E, & F)

    Is there such a thing a a macro to apply conditional formats?

    I am currently storing all macros on a background workbook, then applying them to the new one.

    Am I way out in left field for what I’m asking?

    Thanks

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,070

    Re: VBA to apply border on 3rd party worksheet

    Try this formula for CF:

    =COUNTA(D14:$D$100,E14:$E$100,F14:$F$100)>0
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-23-2018
    Location
    Vancouver
    MS-Off Ver
    2016
    Posts
    3

    Re: VBA to apply border on 3rd party worksheet

    Where would I apply this? Within the conditional formatting or embedded in a macro?

    I really need it to be within a macro (vba)

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,070

    Re: VBA to apply border on 3rd party worksheet

    CF = Conditional Formatting.

  5. #5
    Registered User
    Join Date
    10-23-2018
    Location
    Vancouver
    MS-Off Ver
    2016
    Posts
    3
    Quote Originally Posted by Phuocam View Post
    CF = Conditional Formatting.
    Understand that.... but to what specific cells? All of them? And is it something that can be applied using a macro?

+ 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. Apply border to data label
    By Atom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2017, 08:01 AM
  2. Apply Border to Main Area - Hiccup
    By delaing in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-08-2016, 05:28 PM
  3. [SOLVED] Apply Border to Main Area
    By delaing in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-05-2016, 06:15 PM
  4. Apply Border based on change in cell value?
    By efeb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-11-2009, 04:41 PM
  5. Apply Border to range when first cell has text.
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2005, 04:05 PM
  6. Apply Border
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-28-2005, 08:05 PM
  7. Apply Border based on last Day of Month
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2005, 03:05 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