I'm rubbish with Excel
Board Regular
- Joined
- Nov 18, 2003
- Messages
- 52
I know this is a really easy request, but I've completely drawn a blank.
Basically, I want a macro the same as below, but populating cells A1 - E1 (last blank column) rather than A1 - A5 (last blank row.)
lastrow = Range("A65536").End(xlUp).Row + 1
for i = 1 to lastrow
Range("a" & i).Value = i
next i
I know it's simple, but I've gone stupider than normal.
thanks in advance
Basically, I want a macro the same as below, but populating cells A1 - E1 (last blank column) rather than A1 - A5 (last blank row.)
lastrow = Range("A65536").End(xlUp).Row + 1
for i = 1 to lastrow
Range("a" & i).Value = i
next i
I know it's simple, but I've gone stupider than normal.
thanks in advance