+ Reply to Thread
Results 1 to 5 of 5

Userform Entries not writing To Sheet

  1. #1
    Forum Contributor
    Join Date
    05-23-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    259

    Userform Entries not writing To Sheet

    Hello All,

    So I find myself in a quandary, for I have userform code that *should* work but does not seem to want to (perhaps it's started Christmas Vacation early?)

    Below is the code for my userform (including the relevant parts of the code for writing to the sheet). The thing is, I've used more or less identical code in another workbook and it worked just fine and dandy.

    The userform is called via a beforedoubleclick event in column b. It pulls existing data from the sheet perfectly, just can't seem to nail the re-write.

    Also, for the 6 checkboxes I have, I declared them as boolean. Will this result in a true/false in the cell on the sheet? (That's the result I'm hoping for). Also, when calling the information back up, will the chekcboxes stay checked if their reference cell has true or false? Is there something else I should keep in mind here? Note: If you need the code for pulling up the userform, let me know and I can provide it, just didn't want to muddle this post with too much.


    Any assistance is greatly appreciated!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Userform Entries not writing To Sheet

    Any chance you can provide the workbook?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Userform Entries not writing To Sheet

    Oh! you are missing an else... right before "Defining Ranges" you need to add an "Elese". Right now the code is just skipping right over the whole defining ranges and updating sheet step.

    Also, you have some boolean variables (Success1, etc) and then you are assigning them "ab" & .... which won't work.

  4. #4
    Forum Contributor
    Join Date
    05-23-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    259

    Re: Userform Entries not writing To Sheet

    Arkadi!!!

    You're awesome!

    The dang little "else" was eluding me. I kept thinking the problem lie with with the actual worksheet ranges. Also I changed my booleans to variants which also did the trick.

    Thank you so much!

    If you would still like me to share the workbook let me know, I don't have any problem with doing so!

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Userform Entries not writing To Sheet

    Nope, if your problem is solved I won't need your original... I wanted it to test your issue, then realized the lack of an "Else" meant your code was never being triggered.

+ 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] Userform code and add and remove entries on sheet
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-08-2014, 05:12 PM
  2. [SOLVED] Writing table entries underneath each other
    By dannyjoer in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-12-2013, 03:25 AM
  3. [SOLVED] VBA code for writing to worksheet with userform
    By steviebhoy66 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-09-2013, 01:15 PM
  4. [SOLVED] userform not writing to sheet
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-06-2013, 01:14 PM
  5. userform duplicate entry check writing to sheet
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2013, 06:21 AM
  6. [SOLVED] Populating UserForm ComboBoxes with sheet entries
    By GalmOne in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-14-2012, 08:26 AM
  7. Move userform TextBox entries to cells on a sheet
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-09-2011, 10:33 AM
  8. [SOLVED] writing information from a userform to an excel sheet
    By mike in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2005, 04:05 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