Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Obtaining a certain date from columns

Goddag, how do I make a macro that can get the latest date in a column.
Like I have many dates in that column and I want to get the newest date.

Thank in advance


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Obtaining a certain date from columns


The latest data would be the Max value in the column. If you were using
a formula it would be

=max(A:A)

The equivalent VBA code would be

Dim MaxDate As Date
MaxDate = WorksheetFunction.Max(Columns("A"))


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=152305

Microsoft Office Help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Obtaining just the Year out of the date Learning Excel Excel Discussion (Misc queries) 4 May 25th 08 07:09 PM
generate report from date and obtaining all data in row ronbwa Excel Discussion (Misc queries) 1 March 4th 08 03:28 AM
Obtaining min and max Ed Excel Programming 4 August 3rd 06 04:08 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM


All times are GMT +1. The time now is 02:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"