+ Reply to Thread
Results 1 to 6 of 6

Saving value on worksheet from userform combobox

  1. #1
    Registered User
    Join Date
    03-10-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    18

    Saving value on worksheet from userform combobox

    Hi All, I am having difficulty trying to save a value selected from a UserForm1 VendorCombobox to a worksheet. Scenario is when vendor is selected from the combobox, the value is copied to worksheet (Report). UserForm is still initialized and I would like for the combobox to return to blank after selection has been made with a slight delay (wait). Issue is only way I can clear the textboxes and combobox on userform is to use value = "". This causes the value on worksheet report to be cleared also.What am I missing or is this the wrong approach?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Saving value on worksheet from userform combobox

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Saving value on worksheet from userform combobox

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 08-23-2017 at 04:35 PM.

  4. #4
    Registered User
    Join Date
    03-10-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    18

    Re: Saving value on worksheet from userform combobox

    Hi Mehmetcik, thank you for the quick reply. I just tried the Flag solution. Didn't work but I could be placing the Dim in wrong place. You have it above the Private Sub VendorComboBox. I am assuming it goes underneath the sub, that didn't work. Also tried UserForm_Initialize sub with Dim. Neither seems to work.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Saving value on worksheet from userform combobox

    Try declaring it at the top of the Userform.

    You need this to be a public variable.

    Try
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-10-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    18

    Re: Saving value on worksheet from userform combobox

    THAT WORKED!! thank you so much.

+ 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. Extract Data in the worksheet using the combobox in the userform
    By mayumi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2015, 11:56 PM
  2. [SOLVED] Combobox on Userform not saving selection when form is closed
    By guitarsweety in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-01-2014, 09:46 PM
  3. Using a Userform ComboBox to activate specific worksheet
    By Klemmdog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2014, 03:02 PM
  4. [SOLVED] Need help saving worksheet based on combobox option
    By Julez80s in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2012, 01:36 PM
  5. Userform: Combobox value to WorkSheet Textbox
    By lankan12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2011, 01:56 AM
  6. Saving values from a Userform to a variable to use in a worksheet
    By scott0102 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-28-2011, 02:10 AM
  7. Saving userform data to another worksheet
    By stevo365 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2008, 09:08 AM

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