VBA, How to make data dynamic growing along with another sheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
How to program/name so that data growing along with other sheet. For example
the "date" column with grow with "date" column at other worksheet?
Thanks
Daniel
 
Let's say the date column is in Column A.

Dim myRange as range
Dim lRow as long
Dim aWS as worksheet
set aWS = activesheet 'Change as needed
set myrange = aws.range("A1") 'Change as needed
lRow = aws.cells(aws.rows.count, myrange.column).end(xlup).row
set myRange = myrange.resize(lrow - myrange.row + 1, 0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top