Hi - hoping something might be able to help me with this one...
What I need to do is the following: insert a number of vlookups into an excel worksheet, autofill to the last row of data, copy and paste special values to remove the formulae. The vlookups need to start after the last column of data in row 3 (i.e. the number of columns may not be fixed each time). I have been able to write a macro that will put the vlookups into each cell in each column. However I can't figure out how to autofill the vlookup's to be last row of data. I'd normally use something along the lines of: Dim x as long, x = range("A65000").End(xlup).Row, Range("????").Autofill Destination:=Range("???" & x)
Any ideas?
Thanks
What I need to do is the following: insert a number of vlookups into an excel worksheet, autofill to the last row of data, copy and paste special values to remove the formulae. The vlookups need to start after the last column of data in row 3 (i.e. the number of columns may not be fixed each time). I have been able to write a macro that will put the vlookups into each cell in each column. However I can't figure out how to autofill the vlookup's to be last row of data. I'd normally use something along the lines of: Dim x as long, x = range("A65000").End(xlup).Row, Range("????").Autofill Destination:=Range("???" & x)
Any ideas?
Thanks