+ Reply to Thread
Results 1 to 5 of 5

Copy cell contents to a text box?

  1. #1
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Copy cell contents to a text box?

    Hello,

    I am trying to copy the cell contents to a textbox with the following code:

    Please Login or Register  to view this content.
    It doesn't seem to work

    In spite of recording the macro to see how Excel does it, the generated code doesn't work either....

    Does someone know what the syntax is to copy cell contents to a textbox?

    Thank you for all help
    RN

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Copy cell contents to a text box?

    Please Login or Register  to view this content.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Copy cell contents to a text box?

    Some options

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Copy cell contents to a text box?

    Hey guys, thanks for your help.....

    Concerning TMS's solution, the way I see it all I need to do is the following line right?

    Please Login or Register  to view this content.
    also, jeeeezee its been a while I haven't done VBA

    What if I will put this line in a for-loop and want "H4" as a changing variable ?
    what would I need to do to convert the "H4" string to numbers?

    Thanks for your help

    all help is appreciated...

    Sorry for the delay

    RN

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Copy cell contents to a text box?

    Something like:

    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)

Similar Threads

  1. Copy cell contents as is unless contains text in which case replace
    By xonacs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2018, 12:00 PM
  2. Replies: 6
    Last Post: 04-21-2016, 02:15 PM
  3. macro to copy cell contents then remove substring of contents in new cell - Help
    By three_jeeps in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2015, 01:19 AM
  4. [SOLVED] Macro to copy cell contents then used Find & Replace to put text elswhere.
    By AimeeNZ in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-12-2012, 01:06 AM
  5. Copy contents of cell and paste in text box
    By Ricardo9211 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2009, 01:02 AM
  6. [SOLVED] Can I copy cell contents to an autoshape as text using a macro?
    By Syndrome in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 01:35 PM
  7. Replies: 7
    Last Post: 07-04-2006, 03:20 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