Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Phil Sanchez   on Jan 25 In MS Office Category.

  
Question Answered By: Abelard Fischer   on Jan 25

I don't think this was what was said (or at least I hope it wasn't).
Hopefully the word used was "variant", not "variable".

I think it had to do with parameters of type Variant. Variants can
basically hold anything Excel can put into a variable or parameter, and this
includes "missing", when optional parameters are omitted.

Other optional parameters (e.g. integers) must still always hold a proper
value. If the "optional" clause doesn't provide the default, then Excel
will. But with optional Variant parameters, Excel will just poke a code  for
"missing" into it.

For some reason, Excel then decides that such subroutines should be visible,
even though ones with optional parameters of other types are not made
visible.

===================

Password protection prevents the user from seeing the VBA code - not from
using it. Therefore it needs to keep the macros visible as they were before
a password.

Share: 

 

This Question has 20 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Removing the VBA SourceCode from the Workbook Or get search suggestion and latest updates.


Tagged: