Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Suppose data in A1:F1 and in A1:Asome number
I want to fill code starting in E2 down to Esomenumber. Suppose the formula is "=MyCode" How do I go about doing that, given the number of rows may vary and I want the code to adapt to the number of rows? TIA Ron ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ron
Dim LastRow As Long LastRow = Range("A65536").End(xlUp).Row Range("E2:E" & LastRow).Formula = "=MyCode" Regards Trevor "ronber" wrote in message ... Suppose data in A1:F1 and in A1:Asome number I want to fill code starting in E2 down to Esomenumber. Suppose the formula is "=MyCode" How do I go about doing that, given the number of rows may vary and I want the code to adapt to the number of rows? TIA Ron ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto fill text columns based on rows | Excel Worksheet Functions | |||
Paste values all cells in a region which refers to out of region | Excel Worksheet Functions | |||
Fill cell based on # of days | Excel Worksheet Functions | |||
auto fill rows with months based on cell value | Excel Discussion (Misc queries) | |||
Hiding Specific Rows Based on Values in Other Rows | Excel Worksheet Functions |