Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I connect to a database and receive data, my data is sorted and therefor the maximum date must be in the last record 1.How can I capture the maximum date that exist in column E ? 2. and how can I put this value in "F10"(at the beginig of the file) and auto fill it to the end of the file? Thanks in advance Bijan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
If column A is dates you don't need to specifically find the last row you can get the latest date with Dim Mydate As Date Range("F10") = WorksheetFunction.Max(Range("A:A")) If you want to find the value from the last row you can use lastrow = Cells(Rows.Count, "A").End(xlUp).Row Range("F10") = Range("A" & lastrow).Value Mike "bijan" wrote: Hi all, I connect to a database and receive data, my data is sorted and therefor the maximum date must be in the last record 1.How can I capture the maximum date that exist in column E ? 2. and how can I put this value in "F10"(at the beginig of the file) and auto fill it to the end of the file? Thanks in advance Bijan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open new record with selected fields from previous record | Excel Discussion (Misc queries) | |||
Record macro doesn't record shape properties | Excel Programming | |||
Finding last record in month for each of several types of record. | Excel Programming | |||
Record Macro - Record custom user actions | Excel Programming | |||
Need help autopopulating next new record with previous record data | Excel Programming |