سؤال

The following code as you know chooses the data to Row 390:

 ActiveChart.SeriesCollection(1).Values = "='1'!$A$2:$A$390"

What is the phrase to select automatically to the end of Column A as the 390 might be different in different files.
Many thanks

هل كانت مفيدة؟

المحلول

ActiveChart.SeriesCollection(1).Values = Range(Range("A2"), Range("A2").End(xlDown))
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top