Your macro is calling a row number which is not the data row I think you are expecting.
Seems to me it is out by 5 rows, this is easily fixed but this might be a more versitile solution if my interpretation of your needs is correct.
1/. In CM2 put the figure you want to start with say 7161
2/. In CM3
Drag/Fill Down as required
3/. In CN2
Drag/Fill across to CY2
Select CN2:CY2
Drag Down as required
4/. Format Column CY "dd.mm.yyyy-hh.mm.ss" (to match your formatting)
This will return your data in 30 minute steps starting 13/07/2010 11:00:00 (i.e. 7161)
To change the time step change CM3 and fill down as required.
The data will update automatically
To change the start time (Minutes) in CM2 , again the data will update automatically.
Try the appended workbook
Hope this helps.
Bookmarks