PDA

View Full Version : Solved: Correct syntax



ertan
04-13-2006, 01:49 AM
Need help for using variable in selection


For Each c In DataSheet.Range("A13:A" & DataSheet.Range("A65536").End(xlUp).Row)
I would like to set starting row "A13" to variable.. how would I do that?

For example if I set startrow=activecell.row

What would be the correct syntax to use startrow in above code..

Regards
Ertan

jindon
04-13-2006, 02:00 AM
Hi
sounds like




For Each c In DataSheet.Range("A" & startrow & ":A" & DataSheet.Range("A65536").End(xlUp).Row)

ertan
04-13-2006, 02:19 AM
Thank you , that is it :hi:

It is solved , but I cannot mark as solved..

Regards

Ertan