+ Reply to Thread
Results 1 to 2 of 2

Alternative to ClearContents so Formulas are not Cleared

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Alternative to ClearContents so Formulas are not Cleared

    Hello,

    Please Login or Register  to view this content.
    I used the VBA code above to clear the contents of a field if the parent field is cleared.

    I have realized that it is too confusing to give the users a choice for column I, so I'm trying to auto-populate it based on their selection in column H.

    I'm using the formula =IF(ISBLANK(H72),"",VLOOKUP(H72,OrderType,2,FALSE)) in column I and it works perfectly until I delete the selection in column G or H!

    Is there a way to have the clearcontents NOT clear formulas?

    Please let me know if you need me to post a sample.

    Thank you,

    Kim

    Moderator's Edit: Use code tags when posting code. To do so, select the code and click on the # icon at the top of your post window.
    Last edited by arlu1201; 11-17-2012 at 02:31 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Alternative to ClearContents so Formulas are not Cleared

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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