Thread
:
Change code by code. Can you do that?
View Single Post
#
1
Posted to microsoft.public.excel.programming
merjet
external usenet poster
Posts: 812
Change code by code. Can you do that?
iYr = Year(Sheets("Sheet1").Range("C16")
If iYr = 2007 Then aCol = "B"
If iYr = 2008 Then aCol = "D"
LastCell = Worksheets("Main").Cells(Rows.Count, aCol).End(xlUp).Row
Merjet
Reply With Quote
merjet
View Public Profile
Find all posts by merjet