Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could also assign the entire range at once since every cell is
getting the same value. Change A65536 to whatever is your longest column. Sub Test() ActiveSheet.Range("J2","J"&Range("A65536").End(xlu p).row).Value=0 End Sub Alternately, consider assigning the last row number to a variable to make your code easier to comprehend, especially if you need to references it in several places; like so: Sub Test() Lastrow = Range("A65536").End(xlup).row ActiveSheet.Range("J2","J"&Lastrow).Value=0 End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Fill handle fill down alternative methods question | Excel Discussion (Misc queries) | |||
Automatically fill in third column depending on data in second column | Excel Programming | |||
Fill a column with the contents of another column based on a choic | Excel Discussion (Misc queries) | |||
Excel 2007 column chart fill question | Charts and Charting in Excel | |||
Auto Fill Column with Date based on rows in other column | Excel Programming |