Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In vba how do I:
Change the contents of cell E1 and F1 to the number o (zero) and the autofill the contents the the last cell in each row. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I used column A to find out the last used row.
Dim LastRow as long with worksheets("Somesheetnamehere") lastrow = .cells(.rows.count,"A").end(xlup).row .range("e1:f" & lastrow).value = 0 end with You can fill the whole range at once instead of using autofill. Little Penny wrote: In vba how do I: Change the contents of cell E1 and F1 to the number o (zero) and the autofill the contents the the last cell in each row. Thanks -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
AutoFill a cell with a value | Excel Discussion (Misc queries) | |||
Autofill cell to right | Excel Programming | |||
Autofill: Need to autofill one week block, (5) weekday only into cells. | Excel Discussion (Misc queries) | |||
autofill according to cell index | Excel Worksheet Functions | |||
Q. Autofill question: Can I autofill alpha characters like I can numbers? | Excel Programming |