lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I wanted to know the synatx of PrinPreview function which is part of Workbook object.
So I went to object viewer and found out that excel define this function as
Sub PrintPreview([EnableChanges])
I have 2 questions please
1) Why sub? the icon infront of the function is green box which means it is function not sub
2) Why the ( ) and why there is an argument (EnableChanges) passed? I can call this function like this
Thisworkbook.printpreview
so I did not have to pass anything? then why the syntax is showing it takes an argument. Thank you so much
I wanted to know the synatx of PrinPreview function which is part of Workbook object.
So I went to object viewer and found out that excel define this function as
Sub PrintPreview([EnableChanges])
I have 2 questions please
1) Why sub? the icon infront of the function is green box which means it is function not sub
2) Why the ( ) and why there is an argument (EnableChanges) passed? I can call this function like this
Thisworkbook.printpreview
so I did not have to pass anything? then why the syntax is showing it takes an argument. Thank you so much