![]() |
Dynamic copying of rows
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 |
All times are GMT +1. The time now is 04:28 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com