+ Reply to Thread
Results 1 to 2 of 2

popped a warning message to before adding the data into excel sheet from user form

  1. #1
    Registered User
    Join Date
    08-28-2018
    Location
    singapore
    MS-Off Ver
    2016
    Posts
    5

    popped a warning message to before adding the data into excel sheet from user form

    Hi, this is my code. I want to check if the data exist in the excel worksheet before adding. And if it does exist, popped a msgbox to continue adding the data .

    1)Press the add button
    2) check if the data exist
    3) if exist, show msg "existing data.Are you sure to add the record"
    3.1) If user click yes, enter the record
    3.2) if click no, then clear data in the textbox and allow user to refill
    4.If data not exist, enter to the last row


    CAN ANYONE HELP SPOT AND CORRECT MY MISTAKE IN THE CODE?

    Please Login or Register  to view this content.
    Last edited by alansidman; 09-03-2018 at 10:19 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: popped a warning message to before adding the data into excel sheet from user form

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] help creating a user form using data from an excel sheet
    By ndresjavier in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2016, 10:49 PM
  2. Trigger message box after user updates VBA form based on data calculated in a cell
    By blackelvis73 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2016, 12:51 PM
  3. Create a User form that populates another sheet in excel with data from Access.
    By laras08 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2013, 04:03 PM
  4. [SOLVED] Restricting the user form to adding to excel sheet
    By shiftyspina in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2013, 07:41 AM
  5. [SOLVED] EXCEL USER FORM- data not saving to sheet 3
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2013, 01:27 PM
  6. [SOLVED] User Form not adding data
    By JO505 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-07-2013, 01:21 PM
  7. Adding data to sheet with user form
    By Jay in forum Excel General
    Replies: 1
    Last Post: 06-08-2005, 11:05 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