ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Autofill with different Columns (https://www.excelbanter.com/excel-discussion-misc-queries/196934-autofill-different-columns.html)

rockytopfan4ever

Autofill with different Columns
 
I need to autofill a column without knowing what column its in. The column
can change so I locate the column by searching for a keyword from the
previous column, then offset to the location I need to be. I know how to
autofill a column with
Range("BC6").AutoFill Destination:=Range("BC6:BC")
This wont work everytime because the column may move. I am thinking
something along the lines of:
Selection.AutoFill Destination:=Range(???)
I know how to activate the first cell of the autofill but I am unsure how to
specify where to autofill.

Thanks


All times are GMT +1. The time now is 04:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com