+ Reply to Thread
Results 1 to 9 of 9

Disapearing text.

  1. #1
    Registered User
    Join Date
    01-22-2015
    Location
    castlegar
    MS-Off Ver
    2013
    Posts
    11

    Disapearing text.

    Hi All,

    I have followed the instructions in this post below, to allow for disappearing in cell instructions and I cannot get it to work on a merged cell. (I can get this to work on 1 cell that is not merged) I get an error type mismatch on row "ElseIf .Value <> sPrompt Then". It is just a string input.

    Also, I have quite a few cells that I want in cell instructions for and I cannot seem to get the code to work using multiple merged cells. I just repeated the same code with a different range and it did not work. Sorry I am new to this!

    http://www.excelforum.com/excel-prog...tructions.html

    Here is the code on my worksheet below:

    Please Login or Register  to view this content.

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

    Re: Disapearing text.

    .Value1 is not valid. It does not exist. Put Option Explicit at the top of the module and compile the project.


    Regards, TMS
    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
    Registered User
    Join Date
    01-22-2015
    Location
    castlegar
    MS-Off Ver
    2013
    Posts
    11

    Re: Disapearing text.

    Thank you TMS, I had seen my error on this after I posted, but it is .Value in my code and I still get the type mismatch with Option Explicit

    Please Login or Register  to view this content.
    If I Unmerge the cell, I do not get the "type mismatch" error anymore.. Is there something I have to do for a merged cell?

  4. #4
    Registered User
    Join Date
    01-22-2015
    Location
    castlegar
    MS-Off Ver
    2013
    Posts
    11

    Re: Disapearing text.

    Also, to make this work on more than one cell how would I do that? For example, I want range C14:E14 to Say "Please type the request Date" but I want C15:E15 to say "Please type the description"?

    Thanks!!

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

    Re: Disapearing text.

    Please Login or Register  to view this content.

    Regards, TMS

  6. #6
    Registered User
    Join Date
    01-22-2015
    Location
    castlegar
    MS-Off Ver
    2013
    Posts
    11

    Re: Disapearing text.

    Thank you very much TMS! This was what I needed! In order to not get the mismatch error, I unmerged the cells and will just use single cells for this. Thanks again!

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

    Re: Disapearing text.

    You're welcome. Thanks for the rep.

    Sorry. completely missed the Merged Cell bit. If you have merged cells, the cell count for the Target range will be more than one (1). If you tried to exclude Target.Cells.Count > 1, you would, effectively, ignore changes in the Merged cells. But, if you don't, you can't say IsEmpty(.Value) because you are not looking at one cell, you are looking at a range. That's why you get the Mismatch.





    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  8. #8
    Registered User
    Join Date
    01-22-2015
    Location
    castlegar
    MS-Off Ver
    2013
    Posts
    11

    Re: Disapearing text.

    Ok, that makes sense! For this purpose, I can remove the merged cells. Thanks again for your quick and awesome help!

  9. #9
    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,456

    Re: Disapearing text.

    You're welcome.

+ 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. Excel 2007 : Disapearing XML style sheets
    By tonyiles in forum Excel General
    Replies: 1
    Last Post: 04-04-2012, 10:15 AM
  2. Disapearing Data Validation!
    By jbowman18 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2007, 03:27 PM
  3. Why does the + character keep disapearing?
    By MrFancypants82 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-04-2007, 02:14 PM
  4. Disapearing formulas
    By lostinformulas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2006, 10:45 PM

Tags for this Thread

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