Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Amazing thanks Rick.
I'm new to VBA (and programming in general) and must say I find this group a real help. I learning quickly though. I had not even considered using the column number and .end commands. I used the following code in the end as I had an issue where the startdate was a in a cell ajoined to another part of the table so the xltoright missed the startdate and went to the end date: - identify startdate For Each R In Range("D4:D1000") For Each c In Range(R.Offset(0, 4), R.Offset(0, 147)) If Not c.Value = "" Then R.Value = Cells(3, c.Column).Value Exit For Else End If Next c Next R identify Enddate For Each R In Worksheets("Monday").Range("E4:E1000") R.Value = Cells(3, Cells(R.Row, Worksheets("Monday"). _ Columns.Count).End(xlToLeft).Column + 1).Value Next Many thanks again, Matt |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Offsetting | Excel Discussion (Misc queries) | |||
identify sheet number in header? | Excel Discussion (Misc queries) | |||
How Do I Identify 1 to 1 Offsetting Entries in a List? | Excel Programming | |||
Offsetting a varible?? | Excel Programming | |||
Identify Cell by Column Header and ID in Col A (Track Changes) | Excel Programming |