+ Reply to Thread
Results 1 to 4 of 4

Preventing dynamically updated lists from deletion

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Preventing dynamically updated lists from deletion

    Hi this forum helped me big time the other day and I have some follow up questions, especially for jindon if available. Although the last fix works perfectly, I now realize that if I delete or purge the names in column A of the Loan Records worksheet, that the dynamically updated names in the Customer Record worksheet will also be deleted..and I don't want that!

    Is there a way to prevent the customer names in the Customer Record worksheet from being deleted if the names in column A of the Loan Record worksheet are deleted?

    Also, I would like to protect the Loan Record columns with blue font color from being editable but the vba code that auto sorts and updates the Customer Record worksheet gives me an error when I put the protection on the Loan Record worksheet. Is there any way to fix that?

    Lastly, when I try to assign a macro to a smart shape, I get an error and excel crashes even though the macros works fine using the keyboard shortcuts seen in the Loan Record worksheet. You can see all these issues in the attached sample workbook. Thanks again.LenFrenBackup.xlsm

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Preventing dynamically updated lists from deletion

    Click on the Developer tab and turn on the Design Mode icon, this turns off macros until you turn that mode off again, thus reenabling macros again.

    http://screencast.com/t/vr5P5jaH
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Preventing dynamically updated lists from deletion

    Quote Originally Posted by JBeaucaire View Post
    Click on the Developer tab and turn on the Design Mode icon, this turns off macros until you turn that
    mode off again, thus reenabling macros again.
    Thank you JBeaucaire for your response, that's a neat little trick that will come in handy going forward. Maybe I can approach the deletion issue from another angle.

    Jindon gave me this awesome code that auto inserts/deletes and auto sorts customer names in a database in the 'Customer Record' worksheet that were first created in the 'Loan Record' worksheet (here's the workbook :LenFrenBackup.xlsm). Is there anyway to tweak this code to auto insert a new customer's name only and not to auto delete? Here is the code:


    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 10-16-2012 at 03:23 PM.

  4. #4
    Registered User
    Join Date
    10-09-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Preventing dynamically updated lists from deletion

    Problem solved. I figured it out using a bit of reverse engineering...thanks again everyone for your help.

+ 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