+ Reply to Thread
Results 1 to 4 of 4

Error on If statement

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    Error on If statement

    Hi,
    I have a code that aims to comment based on the date values found on column N. However I seem to be encoutering an error with the code when it hits

    Please Login or Register  to view this content.
    below is my full code

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kchm_2000; 10-28-2011 at 04:44 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: Error on If statement

    I dont see any error on that line. It works fine. I had to change "Cash" to "Cash Summary" and it worked. Also, the inputbox that you have provided shows an auto value of 200 when its asking for a date, maybe you can check that.

  3. #3
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Error on If statement

    hmm, i think the problem was that in my original files I had hidden sheets and the macro was not able to Sheet.select the hiddens sheets, is there a way to adjust the code such that it loops past hidden sheets and also sheets that are named "Cash Summary"?. here is my code once again. I have also reattached a new workbook with 1 hidden sheet. Notably my current threshold date would be 9/30/2011 that would be in pop up box. thanks for anyone's help

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kchm_2000; 10-26-2011 at 11:23 PM.

  4. #4
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Error on If statement

    I have found my own solution thx for anyone who tried to help

    Please Login or Register  to view this content.

+ 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