Hi all,
I want to have a function that move the first workseet
to the last position within the same workbook, that is
for example, i have [ 1 2 3 4 5 ] worksheets in a workbook
A. Then I want to have a new order e.g. [ 2 3 4 5 1].
I have visited msdn and found that I should use a Move
method of WorkSheet object. But this object has two
optional parameters , "Before" and "After". Only either one
of them can be specified when I call this method.
Now, my question is what is the correct syntax in
VBScript since VBscript does not support optional parameters
Can anyone give me an example ? Thank you very much.
Tony
I want to have a function that move the first workseet
to the last position within the same workbook, that is
for example, i have [ 1 2 3 4 5 ] worksheets in a workbook
A. Then I want to have a new order e.g. [ 2 3 4 5 1].
I have visited msdn and found that I should use a Move
method of WorkSheet object. But this object has two
optional parameters , "Before" and "After". Only either one
of them can be specified when I call this method.
Now, my question is what is the correct syntax in
VBScript since VBscript does not support optional parameters
Can anyone give me an example ? Thank you very much.
Tony