Results 1 to 6 of 6

On Button Press Send Value to Selected/Active TextBox?

Threaded View

  1. #1
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    On Button Press Send Value to Selected/Active TextBox?

    Just an experiment / learning.

    I have several TextBoxes on the screen (in a userform). I want to be able to click in one and then click Button and then the Button would send value to the TextBox that is active.

    Very simple but yes, I am that new. I know how to pass the variable to a specific Textbox just not the focused one.

    TextBox1.Text = Value
    Thanks in advance!

    Is this correct?

    Me.ActiveControl.Texxt = Value
    Last edited by NewYears1978; 02-21-2015 at 07:35 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Press submit button and send data to Access
    By Charonix in forum Access Tables & Databases
    Replies: 1
    Last Post: 01-08-2014, 02:34 PM
  2. [SOLVED] Select varying quantity of rows, press macro button to send selection to new workbook
    By tv69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 10:09 AM
  3. [SOLVED] Press a button to SEND data from one worksheet to another based on conditions set by user
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-21-2012, 10:30 AM
  4. Userform: Pass textbox values to another textbox on button press
    By adjustermn in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2010, 11:19 PM
  5. Replies: 17
    Last Post: 05-19-2009, 11:34 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