I have received conflicting advice re: usage of the 'With' statement.
A review of my coding by an experienced coder was critical w/ regard to usage like this (fabricated example below):
The issue: only one object following the 'With' statement - proper form would be 3 distinct lines of code, each starting with 'With wksSample' like this:Please Login or Register to view this content.
I was told a common 'dot operator' was required to follow the initial object (example below). If that common operator does not occur, 'With' should not be employed.Please Login or Register to view this content.
1) Opinions re: this commonly-occurring coding scenario?Please Login or Register to view this content.
2) Q: It was my belief, when a number of 'things' are done to an object, that employing the 'With' operator speeds up the code. True/False?
3) Moreover, what about UserForm coding? Example: I presently have many sets of lines of code like this:
Can... rather, should this be done?Please Login or Register to view this content.
My thanks in advance.Please Login or Register to view this content.
RC (ralphjmedia)
Bookmarks