+ Reply to Thread
Results 1 to 21 of 21

Locking Borders. Conditional Formatting

  1. #1
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Locking Borders. Conditional Formatting

    I have attached my worksheeet so that you may see exactly what I am talking about.
    On the worksheet Column A is the Customer and the rows and columns beside his name are people he has recommended to our shop. What I am looking to do is keep the thick black borders around his information, even if I insert more cells to accomodate more people he recommends, I also want to be able to add new customers to the bottom of the list and then sort the list using column A and have the thick black borders remain around each customers information. I have never used Conditional Formatting and am COMPLETELY lost! Any help is useful.
    Jessica
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting????

    Unfortunately Conditional Formatting doesn't allow you to format heavy borders. :-/ Someone will have to come up with a VBA solution if you still want it.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Locking Borders. Conditional Formatting????

    Yes I still want the information. I didnt think I could do thick black lines with conditional formatting. Now if I dont have my office disc, can I still use VBA? I was just googling some information and came across a little tutorial on VBA and it said I needed my office disc.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    You should still be able to use VBA. Sounds like you might want two buttons, one to remove all the dark borders (if you insert a row and it creates a dark border you don't want. And one to put in the dark borders? Is that what you want? I will check back tomorrow and write a quick program if no one else does before me.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    Okay, I wrote one macro for removing heavy borders (in case you insert lines and the heavy borders are in the wrong places) and one for adding heavy borders between new names. Is this what you want?
    To look at the macros, "View Macros"> Edit
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Locking Borders. Conditional Formatting

    Thank you
    I have opened it and enabled the macros but when I push the Add heavy borders Button it says I can only open it in read only mode.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    Try saving it first, closing it and then reopening it (and enabling macros)

  8. #8
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Locking Borders. Conditional Formatting

    If I dont have my office disc will this affect my ability to enable Macros. I cant seem to get into the file you sent. I have pasted it into a new work book but to no avail.

  9. #9
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Locking Borders. Conditional Formatting

    Whoops, didnt see your last message. I will try savign it right now.

  10. #10
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Locking Borders. Conditional Formatting

    OK
    So I saved it and then reopened it but Excel had to open it with out some content due to damaged content or something like that cant really remember. Anyways, I pushed ok to continue to the workbook but it looks like the content that was lost was the Macros. I pushed the add heavy borders button and nothing happens!
    Sorry for the mess around!

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    I just redownloaded it and seems there were some external links somehow and it "repaired" them. Then I had to reattach the macros to the buttons. If you are still having problems, try this version attached.
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    I had similar problems again. Sorry about this. This worked for me. Instead of selecting "Open" when downloading, save it without opening. Then go into excel and open it. Enable macros if you need to. I'll wait.

  13. #13
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Locking Borders. Conditional Formatting

    I tried the latest version and it did the exact same thing.

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    After you "repair" it, does it still open in "Read only" or do the buttons just not work?

  15. #15
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    Right click on a button and "Assign Macro" then choose the right macro from the list (either addhvyborder or removehvyborder). Click "OK" Then do the same with the other button. Click elsewhere in the spreadsheet and then try the buttons.

  16. #16
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Locking Borders. Conditional Formatting

    ok....First thing in the morning I will try this. I have to run. Thanks for your help and hopefully your on here again tomorrow.
    Again...Thanks for all your help.
    Jessica

  17. #17
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    If none of those options work, we can copy and paste the macros directly into one of your working spreadsheets. (it will then need to be saved as an xlsm file). I posted in Programming forum to see if anyone had experience with this error but so far nothing makes sense. Let me know what's up.

  18. #18
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Locking Borders. Conditional Formatting

    Can you record and run macros yourself? It may be that you do not have VBA installed (in which case, you would need your installation disc).
    Remember what the dormouse said
    Feed your head

  19. #19
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    To test this. First Click on the Large Round Office Icon (upper right) and click on Excel Options.
    Check "show developer tab in the ribbon" Then Okay.
    Now click on the developer tab and "Record Macro" Click okay to the popup window
    type your name into a cell and enter. Hit the "Stop Recording" button
    Clear that cell, then click on the macros button and run the macro (probably macro1).
    If that works, you have VBA.

  20. #20
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Locking Borders. Conditional Formatting

    FYI, there is also a Record Macro button in the bottom left corner of the status bar.
    Last edited by romperstomper; 08-13-2010 at 12:00 PM. Reason: typo

  21. #21
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locking Borders. Conditional Formatting

    Wow, I always thought it was a little ridiculous to put it on the developer tab only. Thanks RS!

    In regards to the issues, I originally thought this might be the problem also (DanD not having VBA) but when I downloaded the file and tried to run it, I had issues too and I'm the one who uploaded it. :/

+ 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