lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I can do the following
Workbooks("test1.xlsx").Worksheets("sheet1").Range("a1:b1") = "test"
to me that means "Worksheets" is a member of "Workbooks" class; otherwise excel would not accept:
Workbooks.Worksheets
But when I check the members of "Workbooks" class, I do not see Worksheets as a member? So why Workbooks.Worksheets is acceptable? Thank you indeed.
I can do the following
Workbooks("test1.xlsx").Worksheets("sheet1").Range("a1:b1") = "test"
to me that means "Worksheets" is a member of "Workbooks" class; otherwise excel would not accept:
Workbooks.Worksheets
But when I check the members of "Workbooks" class, I do not see Worksheets as a member? So why Workbooks.Worksheets is acceptable? Thank you indeed.