+ Reply to Thread
Results 1 to 7 of 7

Pass data from active row to an Active TextBox

  1. #1
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Pass data from active row to an Active TextBox

    Hi,

    I try to send the data from the current row to an Active TextBox having a "specific" format.
    Actually it's a sort of preview email body. If I am happy with the collected data, I just click and send the email without .display.
    I tried with the UserForm or other ways, unsuccessful!
    I attached a sample.

    Could you help me, please?

    Thank you.
    Cheers
    Attached Files Attached Files
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  2. #2
    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,464

    Re: Pass data from active row to an Active TextBox

    Something like:
    Formula: copy to clipboard
    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


  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,464

    Re: Pass data from active row to an Active TextBox

    You could just put it in a cell with an equals sign:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Pass data from active row to an Active TextBox

    Hello TMS!!!
    Long time no see!
    Thanks a lot for your support, I add into L10 and it doesn't "display" anything in my TextBox!
    ...the formula can be seen in cell L10 and nothing else!

    Thank you.
    Cheers

  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,464

    Re: Pass data from active row to an Active TextBox

    Hi John, that's just the formula to collate the components in the correct format. You'd need to adjust your code to copy the value in L10 (or the Active Cell) into your Text Box.

    I'm just playing with this on an iPad at the moment and don't have access to a computer so I can't test putting it in the Text Box.

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Pass data from active row to an Active TextBox

    Hi TMS,
    I think I can have something...but the Date is causing me troubles, I mean it's not "copied" into TextBox, what is wrong, please?
    If I click in column M, the data is copied into TextBox without the Date. The Date should be as 11NOV22, with caps!

    Please Login or Register  to view this content.
    Not sure how to do it.
    Thank you

  7. #7
    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,464

    Re: Pass data from active row to an Active TextBox

    If you are going to loop through cells like this:
    Please Login or Register  to view this content.
    you should be referring to i in the code, not Target.Row

+ 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. [SOLVED] Editable Active X Textbox Linked to Active X List Box
    By bowater in forum Excel General
    Replies: 1
    Last Post: 12-08-2016, 07:44 PM
  2. [SOLVED] Add Text in Active TextBox
    By AmirSoft in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2015, 05:10 AM
  3. Value of Active TextBox in a UserForm
    By j_Southern in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2015, 10:37 AM
  4. [SOLVED] Need to pass the active cell to a String Variable
    By Darth269 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2014, 06:37 PM
  5. Pass non active workbook range to Function
    By nemmi69 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-30-2011, 08:45 AM
  6. Pass non active workbook range to Function
    By nemmi69 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2011, 09:03 AM
  7. How to pass active workbook to external DLL?
    By MarkDev in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2006, 10:25 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