+ Reply to Thread
Results 1 to 5 of 5

if textbox.value is not empty then

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    if textbox.value is not empty then

    Hi im trying to add a form where by users can update certain cells in a spreadsheet based on the input in the userform

    Please Login or Register  to view this content.
    Text box 17 = Name or blank
    TextBox38 = row reference (i.e 5)
    Combobox6 is users choice (i.e red,blue,green)

    What I want is if the texbox 17 is blank it does nothing, otherwise it adds it to the sheet using this code for column 108

    Any idea how to do this as everything I have tried keeps telling me I have a mismatch, I have tried if greater than 0 on the cell reference boxes in this example that is tetxbox38, but still cant get it to work

    Any help would be great thanks, Dan

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: if textbox.value is not empty then

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: if textbox.value is not empty then

    Thanks il give that a go in the morning
    😊

  4. #4
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: if textbox.value is not empty then

    that doesn't show me the error anymore, but it doesn't paste the values from the combo box's into the sheet anywhere, it should be pasting into column DD (108) and then the row reference which is in textbox38 (5) so cell DD5

  5. #5
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: if textbox.value is not empty then

    Whoops, sorry I had the row and column reference around the wrong way, have corrected this now and it works perfectly thanks

+ 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] Empty TextBox count
    By Rufles in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-28-2014, 06:55 AM
  2. [SOLVED] Checking for empty textbox and setfocus the empty textbox
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-23-2013, 02:49 PM
  3. [SOLVED] Error when the textbox is empty
    By gordonf35 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2012, 05:57 PM
  4. Excel 2007 : Empty Textbox Value
    By mike85 in forum Excel General
    Replies: 5
    Last Post: 11-20-2010, 05:36 PM
  5. Empty Textbox
    By Dreamwine59 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-11-2009, 03:29 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