+ Reply to Thread
Results 1 to 4 of 4

Inserting variable data into a text string

  1. #1
    Registered User
    Join Date
    Bradenton, FL, USA
    MS-Off Ver
    Excel 2010

    Cool Inserting variable data into a text string

    Am using Excel 2010. I have a line of text, into which I want to insert a spot saying something like "insert date here", which would allow the user to simply click there and enter data of any length or number of characters. Can't seem to find a way to do it. Can it be done?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010

    Re: Inserting variable data into a text string

    Not AFAIK. You could maybe have a separate column for user input and combine that in the original column ... ="start text " & A1 & " end text" where A1 is the user input. You can then put what you wish in cell A1.

    Regards, TMS
    Trevor Shuttleworth - Excel Aid

    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 martindwilson's Avatar
    Join Date
    MS-Off Ver
    office 97 ,2007

    Re: Inserting variable data into a text string

    you can play around with conditional format a bit
    say you want a text string entered in a1
    create a custom format of say including quotes "please enter name here"
    in conditional format choose us a formula option and make a rule =isnumber(a1) pick your custom format and pick a suitable font. apply
    now type 1 in a1 the message will appear until overtyped with text
    Last edited by martindwilson; 05-13-2012 at 03:20 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16

    Re: Inserting variable data into a text string

    Martin...very very slick, i tried to give you a star but it wouldnt let me
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread


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