+ Reply to Thread
Results 1 to 2 of 2

Based off of text change, text will import into cells, breaks if text is cleared/deleted

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Based off of text change, text will import into cells, breaks if text is cleared/deleted

    I have the below macro code which based off of the N173:N184 drop down menu selection will copy the corresponding block of text into the designated range. The problem is if I clear or delete N173 (or any cell in the N173:N184 range) it throws an error. What I would like to happen is that by clearing N173, it clears out the range of cells that are linked to it. How do I modify the code to do that?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    11,779

    Re: Based off of text change, text will import into cells, breaks if text is cleared/delet

    If the Target is empty, the Match function errors out. Maybe mod:
    Please Login or Register  to view this content.
    Ben Van Johnson

+ 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] If chosen text from validation list is deleted display a text
    By saba@thejaingroup.co in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2014, 03:30 AM
  2. [SOLVED] Change text color of selected cells based on a text value of another cell
    By JNEWBURY2280 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2014, 11:26 PM
  3. Default text in 1 cell when blank - to remain once subsequent text deleted
    By thedude1222 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2013, 08:45 AM
  4. Macro to Parse Text - Import text to Excel from Multiple Text Files & Folders
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2012, 01:05 AM
  5. [SOLVED] Change text on one cell based on text in another
    By Sally B. in forum Excel General
    Replies: 1
    Last Post: 06-30-2006, 10:25 AM
  6. Replies: 0
    Last Post: 06-27-2006, 08:50 AM
  7. [SOLVED] How can I change text to proper text in multiple cells.
    By bethye99 in forum Excel General
    Replies: 1
    Last Post: 01-10-2006, 02:20 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