View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
diepvic diepvic is offline
external usenet poster
 
Posts: 31
Default Error 1004 - Autofill

Thanks so much Per Jessen,

Do you have any idea to solve this? The data can have one row or more than
that. I can not predict it.

Should I use the If ...then...else statement?
like, If lngLastRow 2 then
Range("M2:X2").Select
Selection.AutoFill Destination:=Range("M2:X" & lngLastRow)

Thanks


-----------------------------------------------------------------------------
Less Spam Better enjoyable experience
Visit : news://spacesst.com