View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] YehWei@gmail.com is offline
external usenet poster
 
Posts: 15
Default Autofill dynamic no. of rows and columns

Hi,

I'm trying to copy the formulas from the first row starting from B2 to
some finite column number and applying these formulas (which may be
different) to a dynamic number of rows. In other words, the "BK6" is
not a fixed value. How can I achieve this? Thanks!


Range("B2").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.AutoFill Destination:=Range("B2:BK6"), _Type:=xlFillDefault