Results 1 to 7 of 7

Thread: txtBox to clipboard [Resolved]

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    11

    Resolved txtBox to clipboard [Resolved]

    Hi all,

    I have a form that has a text box and cmd button on it. What i want to happen is when i press the cmd button it to take the text written in the txt box and paste it into the cell on the excell spreadsheet

    Thanks for any help given
    Last edited by Sparky_GPR; Jun 23rd, 2006 at 03:38 AM.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: txtBox to clipboard

    is this ALL in excel or VB with Excel?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    11

    Re: txtBox to clipboard

    VB for Applications that comes with excel

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: txtBox to clipboard

    ok.. which textbox control did you use? (From the Controls Toolbox command bar or the Forms Command bar?)
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    11

    Re: txtBox to clipboard

    Controls Toolbox

  6. #6
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: txtBox to clipboard

    easy one (Sorry for not getting back quicker.. got side tracked lol)

    VB Code:
    1. Private Sub CommandButton1_Click()
    2.    
    3.     Range("A1") = Sheet1.TextBox1.Text
    4.    
    5. End Sub
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  7. #7

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    11

    Re: txtBox to clipboard

    nah this doesnt work m8 ???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width