+ Reply to Thread
Results 1 to 5 of 5

Setting a macro for a text box

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-06-2004
    Posts
    121

    Setting a macro for a text box

    I want to setup a macro which will cause anything I type in a particular text box to be duplicated automatically to a set of merged cells (in the same format as the text box - IE: returns and spacing)

    What's the best way to do this?

  2. #2
    Forum Contributor
    Join Date
    01-06-2004
    Posts
    121
    I guess I've just blown you all away with this question, huh?

    :lol

  3. #3
    Forum Contributor
    Join Date
    01-06-2004
    Posts
    121
    C'mon guys! At least tell me what I'm asking for is impossible so I'll quit coming back here to see if anyone responded...

  4. #4
    Registered User
    Join Date
    03-31-2004
    Location
    Toronto, Canada
    MS-Off Ver
    2003/2007
    Posts
    36
    Try this

    Private Sub TextBox1_Change()
    Range("A1").Value = Me.TextBox1.Text
    Range("A2").Value = Me.TextBox1.Text
    Range("A3").Value = Me.TextBox1.Text
    Range("A4").Value = Me.TextBox1.Text
    End Sub
    my first 4 cells in each row were merged. u only need to refer to the first one. But this does leaves you with some rectangular box when you press Ctrl+Return in the text box (this gives you mutiple lines in a text box). This is atleast a start I guess.

    Keyur

  5. #5
    Forum Contributor
    Join Date
    01-06-2004
    Posts
    121
    Thanks! I'll try it out!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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