+ Reply to Thread
Results 1 to 3 of 3

copy paste data from a userform textbox to worksheet

  1. #1
    Registered User
    Join Date
    11-20-2014
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    8

    copy paste data from a userform textbox to worksheet

    Hello everyone !

    I need some help please.
    I canīt copy information from a textbox (userform) to a range in a worksheet because an error appears when the code try to past the information in range

    The error is this : "run time error 1004 paste method of worksheet class failed"

    The code of my vba macro is :

    if textbox.value = "TABELA" then
    textbox.Copy
    Sheets("TARIFAS").Select
    Cells(1, 1).Select
    ActiveSheet.Paste --> The error appears here
    Sheets("TARIFAS").Visible = False
    Else
    End If

    CAN SOMEONE HELP ME please ?

    Regards
    Last edited by jalmeida87; 04-14-2015 at 10:48 AM.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: copy paste data from a userform textbox to worksheet

    Is your sheet named TARIFA, or TARIFAS?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    11-20-2014
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    8

    Re: copy paste data from a userform textbox to worksheet

    Sorry is TARIFAS..
    However i fixed the name in my first comment.

+ 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. Copy visible cells in filtered table and paste in userform textbox - email
    By pfeifferjoey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2014, 11:23 AM
  2. Replies: 4
    Last Post: 01-29-2014, 05:53 AM
  3. [SOLVED] Copy and paste from textbox to worksheet
    By NJH88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2013, 07:38 AM
  4. Macro to copy textbox data to a duplicate textbox in another worksheet
    By nitram lowm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2013, 06:10 AM
  5. Copy/Paste from worksheet to textbox in userform
    By jarrods in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2009, 05:52 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