V
ville.jokela
This might be very easy question, but very hard for me. I try to do VBA
code where I copy one formula to rows. When I record a macro I get
this code:
Sub uusikopsaus()
Range("C6").Select
Selection.AutoFill Destination:=Range("C6:C20"),
Type:=xlFillDefault
Range("C6:C20").Select
End Sub
This code is okay, but how I should change it such way that range
function get parameters from COUNT function. This is pseudocode, but
idea is this kind of:
Selection.AutoFill Destination:=Range("C6:C[COUNT(C:C)]")
Thanks in advance
code where I copy one formula to rows. When I record a macro I get
this code:
Sub uusikopsaus()
Range("C6").Select
Selection.AutoFill Destination:=Range("C6:C20"),
Type:=xlFillDefault
Range("C6:C20").Select
End Sub
This code is okay, but how I should change it such way that range
function get parameters from COUNT function. This is pseudocode, but
idea is this kind of:
Selection.AutoFill Destination:=Range("C6:C[COUNT(C:C)]")
Thanks in advance