lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
Why the code below is acceptable?
Workbooks.Add.SaveAs Filename:="c:\testing.xlsx"
The part I do not understand, is that Add is a method so why excel accept
Add.SaveAs?
The above code, means Add is an object. So I checked Add and it is method that return Workbook as a type. A function return an object? That is confusing? any help how to understand that line of code? Thank you very much
Why the code below is acceptable?
Workbooks.Add.SaveAs Filename:="c:\testing.xlsx"
The part I do not understand, is that Add is a method so why excel accept
Add.SaveAs?
The above code, means Add is an object. So I checked Add and it is method that return Workbook as a type. A function return an object? That is confusing? any help how to understand that line of code? Thank you very much