+ Reply to Thread
Results 1 to 12 of 12

Disappearing in-cell instructions

  1. #1
    Registered User
    Join Date
    07-07-2008
    Location
    Chicago
    Posts
    17

    Disappearing in-cell instructions

    Hello,
    Simple question here: I'd like to have a cell contain instructions that disappear when text is entered into the cell, much like the "help" box on the upper right of the Excel window has a label that says "Please type question here", which disappears when you actually type in a question. Any ideas?
    THANKS.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Maybe like this. Code goes in the appropriate sheet module.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-02-2008
    Location
    Winnipeg, MB
    Posts
    57
    Quote Originally Posted by shg
    Maybe like this. Code goes in the appropriate sheet module.
    Please Login or Register  to view this content.

    Where so I paste this code to make the function work?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    In the appropriate sheet module:

    Adding Code to a Sheet module
    1. Copy the code from the post
    2. Right-click on the tab for the relevant sheet and select View Code
    3. Paste the code in the window that opens


    Please be circumspect about posting questions in other people's threads.

  5. #5
    Registered User
    Join Date
    07-02-2008
    Location
    Winnipeg, MB
    Posts
    57
    All I want is for the J2:J9 range to display "Paste special" if there is no data in the cells.

    Can someone insert the appropriate code in the sheet module?
    Attached Files Attached Files

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Vbort44,

    Please read forum rules below. If you want to ask questions about someone else's post start your own thread including a link to the other post

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  7. #7
    Registered User
    Join Date
    07-07-2008
    Location
    Chicago
    Posts
    17

    Still not working for me...

    Hello, unfortunately I can't get this to work. I've tried changing the cell address (I65 is the first target cell in this case). Also, this would be going into a workbook with several sheets, and I'd like this function to appear in each sheet. I tried copying this into the "This Workbook" code view, to no avail. Any ideas?

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Post your workbook with the code installed.

  9. #9
    Registered User
    Join Date
    07-07-2008
    Location
    Chicago
    Posts
    17

    Book attached.

    Normally, this book has 7 sheets. I shaved 5 off to keep it under 100KB.

    Two things: You can see that for the sheet SchlA (Sheet3 in VBA) I was able to get it to work for one cell (K47). However, I'm not sure how to make it apply to the range of cells below it (K47:K63). Lastly, the "comments" text does not appear until after you've typed something and then delete it.

    Thanks for all your help, shg.
    Attached Files Attached Files

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I'm not sure how to make it apply to the range of cells below it (K47:K63)
    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Lastly, the "comments" text does not appear until after you've typed something and then delete it.
    You could just add them to the form initially.

  11. #11
    Registered User
    Join Date
    07-07-2008
    Location
    Chicago
    Posts
    17

    Worked

    That did it. Many thanks.

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You're welcome, glad it worked for you.

+ 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