i kinda guessed you did
wasn;t sure what you needed though
"Barb Reinhardt" <(E-Mail Removed)> wrote in message
news:AD0B4985-746A-4CE9-BCA0-(E-Mail Removed)...
> I understand all that. I'm still looking for code for something like this
>
> Sub Test (myVal as variant)
>
> where I can programmatically define several discrete options for myVal.
> Only those values are allowed. I've seen it on other code, but just can't
> find it. It's something that done outside of the procedure as I recall.
>
> Barb Reinhardt
>
> "Patrick Molloy" wrote:
>
>> a Hidden sheet can still be seen, and possibly unhidden by the user
>> through
>> the Format/Sheets/Unhide menu - hidden sheets are listed here. However
>> VeryHidden sheets cannot be seen in this list. they can only be seen in
>> the
>> workbooks property window and listed in code.
>>
>> "Barb Reinhardt" <(E-Mail Removed)> wrote in
>> message
>> news:712C64D2-0A65-4D0E-B39C-(E-Mail Removed)...
>> > I want to do something like this
>> >
>> > Sub HideUnhideSheets(myWS As Excel.Worksheet, myHidden As Variant)
>> > If myWS.Visible <> myHidden Then
>> > myWS.Visible = myHidden
>> > End If
>> >
>> > End Sub
>> >
>> > What I want to do is set it up so that myHidden only allows xlVisible,
>> > xlHidden and xlVeryHidden (or whatever they are). How do I do that?
>> >
>> > Thanks,
>> > Barb Reinhardt
>>
>>