+ Reply to Thread
Results 1 to 4 of 4

Buttonclick add nothing to cell trough textbox

  1. #1
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Buttonclick add nothing to cell trough textbox

    Hi

    I have seven textboxes thats connected to seven cells in a sheet (Range B6:H6)

    If add a value to the first textbox lets say "5" and leave the rest of the textboxes blank ant press the commandbutton the result in the sheet will be:
    B6 = 5,0
    C6 = 0,0
    D6 = 0,0
    E6 = 0,0
    G6 = 0,0
    H6 = 0,0

    Is it possible to get cells C6 to H6 to be blank instead of showing 0,0 when their textboxes are left blank ?

    Please Login or Register  to view this content.

    Petter

  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,937

    Re: Buttonclick add nothing to cell trough textbox

    Try a series of If then statements along this line

    Please Login or Register  to view this content.
    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

  3. #3
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Buttonclick add nothing to cell trough textbox

    Ok i am almost there sometimes i have values that is 0,1 or 0,9 and even 0,0.

    Is there a way only ignore if the textbox is blank ?

    I have tried this

    Please Login or Register  to view this content.
    and this

    Please Login or Register  to view this content.
    but it does not work.

    // Petter

  4. #4
    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,937

    Re: Buttonclick add nothing to cell trough textbox

    Try this line instead

    Please Login or Register  to view this content.
    or perhaps

    Please Login or Register  to view this content.
    Last edited by alansidman; 03-11-2015 at 08:26 PM.

+ 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. peak to trough timeline
    By aldica in forum Excel General
    Replies: 1
    Last Post: 12-12-2014, 06:46 PM
  2. Finding Peak and Trough
    By VJR in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 05-01-2014, 11:01 AM
  3. Open PDF file on ButtonClick
    By JanF in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2014, 07:58 AM
  4. [SOLVED] Add an IF that brows trough my chart
    By historic777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2013, 08:36 AM
  5. Change Date with ButtonClick event
    By beechum1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2009, 09:44 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