+ Reply to Thread
Results 1 to 14 of 14

Transfer String Data from Textbox to Textbox

  1. #1
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Transfer String Data from Textbox to Textbox

    Hi all,

    Is it possible to transfer a string of text from an object textbox to a shapes textbox? I have a form created in VBE that has a textbox and an enter button. I would like to take the entered data from that textbox and transfer it to another textbox located on a sheet.

    -Michael
    Last edited by Mordred; 04-26-2011 at 05:52 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Transfer String Data from Textbox to Textbox

    Hello Mordred,

    Yes, you can. What is the name of the Shape and what the name of the sheet it is on?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Transfer String Data from Textbox to Textbox

    Hi Leith Ross,
    The shape is called PrintBox and it is located on Sheets("Graphs")

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Transfer String Data from Textbox to Textbox

    Edit to last post, the textbox is called PrintBox

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Transfer String Data from Textbox to Textbox

    Hello Mordred,

    Both objects are named "PrintBox" ?

  6. #6
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Transfer String Data from Textbox to Textbox

    LoL, no the sheet textbox is called PrintBox while the userform textbox is called TextboxInsert. Sorry for being daft today!

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Transfer String Data from Textbox to Textbox

    Hello Mordred,

    You may need to change the name of the user form if it is not named "UserForm1".
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 04-26-2011 at 04:25 PM. Reason: Corrected Bold Tag

  8. #8
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Transfer String Data from Textbox to Textbox

    Hi Leith Ross,

    I receive the error "Run time error '438': Object doesn't support this type of property or method" on the following line:
    Please Login or Register  to view this content.

  9. #9
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Transfer String Data from Textbox to Textbox

    Hello Mordred,

    The error indicates the Shape Object does not have a text frame. How did you creae this text box?

  10. #10
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Transfer String Data from Textbox to Textbox

    Hi Leith Ross,

    I created it using the Contro Toolbox within the spreadsheet. If I record a macro to select it, I get this:
    Please Login or Register  to view this content.

  11. #11
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Transfer String Data from Textbox to Textbox

    Hello Mordred,

    This should work...
    Please Login or Register  to view this content.

  12. #12
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Transfer String Data from Textbox to Textbox

    Hi Leith Ross,
    Thanks so much for your patience with me. The only change I had to make was
    Please Login or Register  to view this content.
    and then it works like a charm.

  13. #13
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Transfer String Data from Textbox to Textbox

    Hello Mordred,

    See, you are not alone being a wee bit daft!

  14. #14
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Transfer String Data from Textbox to Textbox

    or
    Please Login or Register  to view this content.



+ 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