Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
For some reason I can't see the forest through the trees in this If, Then, Next code... Sub UpdateYear() Dim sCell As Range Dim tCell As Range Dim i As Integer For i = 1 To 5 Set sCell = Range("A1:A5") Set tCell = Range("B1:B5") If Not Cells(i, tCell) = "" Then Cells(i, tCell).Value = Cells(i, sCell) Cells(i, tCell).NumberFormat = "YYYY" End If Next i End Sub As always TIA Mick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting Rows With Non-Needed Data between Needed Data | Excel Worksheet Functions | |||
sum(if...) help needed! | Excel Discussion (Misc queries) | |||
VBA help needed please | Excel Programming | |||
More help needed :-( | Excel Worksheet Functions | |||
Help needed | Excel Programming |