+ Reply to Thread
Results 1 to 2 of 2

Excel VBA to Read Range of Dates

  1. #1
    Registered User
    Join Date
    07-23-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Excel VBA to Read Range of Dates

    hi,

    Could someone teach me on how to allow excel to to read a range of dates that is selected in 2 listbox using VBA?

    Eg.

    Listbox1 is 25/05/2015 and listbox2 is 30/05/2015.

    Then the VBA code would allow excel to read the the dates from 25 to 30 May and sum the values.
    Using the table below, excel will sum column 2 and return 21.
    22/05/2015 10
    23/05/2015 12
    24/05/2015 14
    25/05/2015 1
    26/05/2015 2
    27/05/2015 3
    28/05/2015 4
    29/05/2015 5
    30/05/2015 6

    Please Help guys

    Thanks in advance!

    Regards
    Melvin

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Excel VBA to Read Range of Dates

    Your data in columns "A & B" Results "C1".
    Please Login or Register  to view this content.
    Regards Mick

+ 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. Open workbook in read only or read write for excel 2010 version
    By Agent1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2014, 07:19 PM
  2. Replies: 0
    Last Post: 04-15-2014, 10:23 AM
  3. Read Excel named range to Array
    By dizabled in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-31-2011, 10:09 PM
  4. Have VBA read dates as numbers?
    By ilovelagar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2009, 11:00 AM
  5. Excel Macro - Read excel & read excel range - save as text
    By se.sathish in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2008, 09:00 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