+ Reply to Thread
Results 1 to 3 of 3

Optionbutton check before uploading data userfrom

  1. #1
    Registered User
    Join Date
    01-08-2020
    Location
    amsterdam
    MS-Off Ver
    2010
    Posts
    45

    Optionbutton check before uploading data userfrom

    Hi there,

    I have a question and hope someone can help me.
    In a userfrom I have added optionbuttons. I want a check to see if an option button has been checked before the form is written to the excel file.

    The check goes well, but then the userform is completely closed, so that all entered data is lost.
    how can I write the macro in such a way that when the ok button for uploading the data is checked or the option buttons are selected, otherwise I get a message and then come back to the completed form?


    HTML Code: 

  2. #2
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: Optionbutton check before uploading data userfrom

    Hello remco77a,

    We would need more information of your code in order to help. Normally the form values should not be deleted. You can populate forms before showing them and take values after hiding them... so there is something going on in your code that makes it behave like this...

    I made a quick test and it behaves as expected.

    I put this in form code window:
    Please Login or Register  to view this content.
    Attaching the file for your reference as well.

    Hopefully this helps!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-08-2020
    Location
    amsterdam
    MS-Off Ver
    2010
    Posts
    45

    Re: Optionbutton check before uploading data userfrom

    Hi Chullo,

    Great! thank you for your fast repaly my code is quite long, but your solution is workig for me!

    thanks a lot!

+ 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. Replies: 6
    Last Post: 05-20-2014, 02:45 AM
  2. Uploading data into tables with a button click & pulling back the data from the table
    By tvsreekanth in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2013, 07:29 AM
  3. Uploading data to a textbox in userform
    By Dave Marshall in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-15-2013, 01:54 AM
  4. [SOLVED] Check for OptionButton selection
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-30-2012, 05:15 PM
  5. Check Value Status of 5 OptionButton
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2012, 02:02 AM
  6. [SOLVED] uploading excel data to sql
    By cdneely in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2005, 12:25 PM
  7. OptionButton Check
    By Information Hog in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2005, 12:53 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