+ Reply to Thread
Results 1 to 5 of 5

clear text from textbox's

Hybrid View

Del117 clear text from textbox's 12-18-2013, 06:17 PM
Solus Rankin Re: clear text from textbox's 12-18-2013, 06:31 PM
alansidman Re: clear text from textbox's 12-18-2013, 06:40 PM
Del117 Re: clear text from textbox's 12-18-2013, 07:49 PM
Solus Rankin Re: clear text from textbox's 12-18-2013, 09:51 PM
  1. #1
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,704

    Re: clear text from textbox's

    Because your text box is in a worksheet and not a form, you need to insert the sheet reference

    Sub Button2_Click()
     Sheets("Sheet1").TextBox1.Value = ""
    
    End Sub

    Edit: got sidetracked and solus gave you the answer. Good.
    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

  2. #2
    Registered User
    Join Date
    11-17-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    18

    Thumbs up Re: clear text from textbox's

    ah right got it!
    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] How to Clear default value from Textbox on click?
    By priya06manohar@gmail in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2013, 08:30 PM
  2. Replies: 0
    Last Post: 02-05-2013, 09:11 AM
  3. VBA - Macro Code to copy textbox text to another worksheet textbox
    By nitram lowm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2013, 08:39 AM
  4. [SOLVED] Clear Textbox, after clicking 2 times
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2012, 06:32 PM
  5. Clear Date textbox
    By tqm1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2007, 08:35 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