+ Reply to Thread
Results 1 to 4 of 4

Vba not reading if date conditon

  1. #1
    Registered User
    Join Date
    10-25-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Vba not reading if date conditon

    Hello everybody,

    I'm trying to make a dashboard for a school project and the data are separated into different file from the dashboard.

    With part of my codes being like this,
    Please Login or Register  to view this content.
    whereby the wb refers to the data file.

    After running the codes, there were no errors, however, the arrayName did not collect the data. I've found out it is the date part of the if condition that cause the data not to be collected as i tried changing the if into a nested if.

    Please Login or Register  to view this content.
    Then after running it, the data were collected, however only of the condition of the "Infra System", not the date condition.
    I've tried searching and asking around, unfortunately, i could not find out what was the problem.
    Please help me. Thank you!
    Last edited by kisa159; 10-28-2014 at 08:14 AM.

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Vba not reading if date conditon

    Dont Use & (ampersent Symbol)

    use full (and) , then try
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    10-25-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Re: Vba not reading if date conditon

    Thank you so much! It work! Thank you! ^0^

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Vba not reading if date conditon

    Glad to Help

    Please Click on * Add Reputation to say thanks

+ 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] Copy Down sum formula with conditon
    By HaroonSid in forum Excel General
    Replies: 6
    Last Post: 04-26-2014, 10:21 AM
  2. Copy Down sum formula with conditon
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2014, 10:16 AM
  3. [SOLVED] IF conditon on numeric and alphanumeric
    By emina002 in forum Excel General
    Replies: 5
    Last Post: 06-13-2012, 04:34 AM
  4. VBA IF Conditon with number and string
    By Rushdy Najath in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-29-2012, 01:16 PM
  5. Sumproduct array conditon for row
    By Azam Ali in forum Excel General
    Replies: 11
    Last Post: 02-11-2012, 11:09 AM

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