+ Reply to Thread
Results 1 to 2 of 2

Populate Excel cells based on multiple IF conditions in VBA

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    PL
    MS-Off Ver
    Excel 2003; Excel 2007
    Posts
    3

    Post Populate Excel cells based on multiple IF conditions in VBA

    I have a terrible headache on the following conditions:

    The difference between a date given in cell (i, 9) and NOW() should undergo the IF procedures set presented below in the macro - in another cell (i, 13) it should display certain text with coloring (warning).
    However, if (i, 9) is empty, then cell (i, 10) should follow the same set of IFs.
    If there is nothing in both cells, the warning cell (i, 13) should remain empty.

    I was able to create only the first condition, which is working fine, however, I have no idea how to approach the second one. Does anyone have an idea how to create a loop where this would work? Unless I did not describe the issue clearly enough. Thank you in advance!


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Populate Excel cells based on multiple IF conditions in VBA

    Hi

    Try this.

    Please Login or Register  to view this content.
    If that doesn't really do what you are chasing, then add an example file. I'm not sure about the last test you have that you want to really clear out column 13 if column 9 is blank...

    rylo

+ 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