+ Reply to Thread
Results 1 to 3 of 3

Would a loop help solve my problem?

  1. #1
    Registered User
    Join Date
    06-12-2015
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    9

    Would a loop help solve my problem?

    Hello genius people. I need some help again. Hoping someone out there smarter than me can help. I am learning VBA code, and have used this forum for much of my progress so far - so thank you!
    Here is my issue:
    I have a spreadsheet "form".. Customers use it to "build" what they want to buy.
    I have code that prompts the user to enter a specific password that populates that given customer's specific discount.
    The issue is that once that process occurs, if any further changes are made in the spreadsheet, the discount disappears and the customer would need to reenter their password. Is there any way that this can fixed? i would really like to have the discount remain in tact no matter what changes are made to the spreadsheet. My code is below. It is most probably not the best.. Any suggestions are greatly appreciated!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Would a loop help solve my problem?

    Why don't you move this code to the Worksheet_Activate() event? It would be done only once when the sheet is activated.
    Or it could be done on the Workbook_Open() event too.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    06-12-2015
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    9

    Re: Would a loop help solve my problem?

    I will definitely try that! Thank you so much for the reply!

+ 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. [SOLVED] VBA Solver loop does not solve
    By ctempelman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-20-2015, 02:41 PM
  2. Replies: 0
    Last Post: 11-20-2014, 07:26 AM
  3. Please Solve my Problem
    By sweetload in forum Excel General
    Replies: 1
    Last Post: 04-04-2013, 01:42 AM
  4. how should I solve this with FOR loop
    By blackmaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2012, 07:17 PM
  5. how should I solve this with FOR loop
    By Hard in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-14-2011, 04:20 AM
  6. (Solve) How to add second loop in VBA coding
    By SubwAy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-04-2011, 03:30 PM
  7. Creating a basic loop to solve an equation multiple times
    By MechEng84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2009, 09:26 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