+ Reply to Thread
Results 1 to 4 of 4

Help with Missing and Broken Code

  1. #1
    Forum Contributor
    Join Date
    08-02-2021
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Question Help with Missing and Broken Code

    Good Day All!

    I have attached the workbook in question.

    Could someone assist in completing or fixing my code for the UserForm?

    So, I have managed to make the UserForm add data to the table, and I can select it from the ListBox in the UserForm and it will populate the form. Great.
    However, I am coming across issues when I want to edit - if I select the item I want to edit, the ListBox doesn't show me all data with the items selected, instead it shows the items selected only (But they are unchecked) I can't seem to uncheck and check another one should I wish to edit. - I think I might need to change the delimiter as well.

    I also have UserForm12 which is similar to how I want the search and formatting on the ListBox in UserForm1 - the search button should allow me to search anything within the defined range.

    And I am really struggling to find a way to keep a log of the data and add it to a table within another sheet - incase I need to look up what the old figures used to be...

    Please can someone assist me?
    Last edited by MyForcey; 12-27-2023 at 04:31 AM.

  2. #2
    Registered User
    Join Date
    10-16-2023
    Location
    Poland
    MS-Off Ver
    Excel 2019 32bit WIN10
    Posts
    88

    Re: Help with Missing and Broken Code

    Add this procedure to the UserForm1 module:
    Please Login or Register  to view this content.
    Line of procedure "PopulateUserformControls":
    Please Login or Register  to view this content.
    change to:
    Please Login or Register  to view this content.
    And similarly the "listboxSearch_Click" procedure line:
    Please Login or Register  to view this content.
    change to:
    Please Login or Register  to view this content.
    I assumed that the delimiter is a semicolon.

  3. #3
    Forum Contributor
    Join Date
    08-02-2021
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Re: Help with Missing and Broken Code

    Hi there, thank you - the listbox is definitely working better.

    But now the btnADD procedure keeps crashing excel and I don't think the search btn is working.

    The edit button I wanted to - for example - click once to allow edits then click again to confirm the edit?

    appreciate the help.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-16-2023
    Location
    Poland
    MS-Off Ver
    Excel 2019 32bit WIN10
    Posts
    88

    Re: Help with Missing and Broken Code

    But now the btnADD procedure keeps crashing excel
    In the "btnADD" procedure, before the line:
    Please Login or Register  to view this content.
    insert:
    Please Login or Register  to view this content.
    and before the line:
    Please Login or Register  to view this content.
    insert:
    Please Login or Register  to view this content.
    I don't think the search btn is working
    How is search supposed to work? In which columns?

+ 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. Broken Code. Web Data Pull
    By JBaum2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2020, 05:17 PM
  2. Code Seems Broken Since Beginning Of Month
    By JFJ in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-14-2019, 04:33 PM
  3. Code for adding section broken - help!
    By 0darroch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2016, 10:35 AM
  4. find and delete row code broken...help!
    By tsiguy96 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2016, 11:25 AM
  5. Tally Macro: Broken Code
    By jaredmccullough in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-15-2014, 04:43 PM
  6. Copy web page with VBA code- broken
    By flaviu123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2014, 09:45 AM
  7. VBA code to validate Broken links of a web page
    By Shanthuday in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2013, 08:25 AM

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