Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can someone pls tell me what I'm doing wrong?
Dim startDate As Date Dim endDate As Date startDate = Application.Min(Range("a:a")) endDate = Application.Max(Range("a:a")) Later, I try to use this in a different sheet I get type mismatch no matter what I try: Cells("Cl").Value = "Summary for " & startDate & "- " & endDate I also found that I need to activate the sheet that has the dates because With Sheets ("mySheet") startDate = Application.Min(Range("a:a")) endDate = Application.Max(Range("a:a")) End With is still trying set the dates from the active sheet. Thanks in advance! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
type mismatch--how to fix | Excel Discussion (Misc queries) | |||
Type Mismatch | Excel Programming | |||
Type mismatch | Excel Programming | |||
Type Mismatch | Excel Programming | |||
Type Mismatch on Date | Excel Programming |