+ Reply to Thread
Results 1 to 14 of 14

How to skip blank cells in Function for Rank in VBA?

  1. #1
    Registered User
    Join Date
    05-18-2007
    Posts
    74

    How to skip blank cells in Function for Rank in VBA?

    Please Login or Register  to view this content.
    how would i get this module to do nothing if certain text is entered in the box
    Last edited by VBA Noob; 05-23-2007 at 01:29 PM.

  2. #2
    Registered User
    Join Date
    05-04-2006
    Posts
    24

    if statement

    why wouldnt you use an if statement?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-18-2007
    Posts
    74
    im not real familiar with this code? can you tell me what what "set value" or would be?

  4. #4
    Registered User
    Join Date
    05-04-2006
    Posts
    24

    set value

    set value would be the text you are wanting it to avoid.. If i wanted to avoid all start times that were 10:00 then i would put
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-18-2007
    Posts
    74
    ok, i thought so...so as of now. i have
    Please Login or Register  to view this content.
    thats still outputting an error
    Last edited by VBA Noob; 05-23-2007 at 01:29 PM.

  6. #6
    Registered User
    Join Date
    05-04-2006
    Posts
    24

    yes, try this..

    you are setting it equal to 0, but then you are not doing anything as the rest of your process is part of the else.. try this.

    Please use code tags as it is the forum rules.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-18-2007
    Posts
    74
    thats still outputting a #NAME error

  8. #8
    Registered User
    Join Date
    05-04-2006
    Posts
    24
    please post your entire code.

    also i need a data examples.

  9. #9
    Registered User
    Join Date
    05-18-2007
    Posts
    74
    Please Login or Register  to view this content.
    (i can't zip files. so ill do the best i can by typing it out)

    Name.......IN......OUT
    ABC........HOL....... ...
    DEF.......10:00....6:00
    GHI.........VAC....... ....
    JKL.........FMLA..... .....
    MNO......12:00....10:00

  10. #10
    Registered User
    Join Date
    05-04-2006
    Posts
    24
    i need the rest of the code where u are calling the function

  11. #11
    Registered User
    Join Date
    05-18-2007
    Posts
    74
    Please Login or Register  to view this content.
    C is the IN time and D is the OUT time

  12. #12
    Registered User
    Join Date
    05-18-2007
    Posts
    74
    do i have to do anything else besides save the module to take affect in the spreadsheet?

  13. #13
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Neight, yesterday i asked you to change the title of this thread or risk having it locked or deleted, as you have not done this it has been locked!
    Not all forums are the same - seek and you shall find

  14. #14
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Apology given and accepted - Thread Unlocked!

+ 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