Re: Application.UserName Question
- From: "Chip Pearson" <chip@xxxxxxxxxxxx>
- Date: Mon, 8 Jan 2007 10:53:39 -0600
"Sean Timmons" <SeanTimmons@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
In VB, you would write as:
If OR(argument1,argument2) Then
That is NOT how you would write it in VB. That's formula, not VB, syntax.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)
"Sean Timmons" <SeanTimmons@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:79B7B21A-5D24-4CFB-9899-413F4C965D25@xxxxxxxxxxxxxxxx
In VB, you would write as:
If OR(argument1,argument2) Then
however, looks liek you want:
If AND(arg1,arg2)
otherwise, you're basically ignoring your first argument with your second.
Unless you want where username IS those names, in which case it should be
=.
"HROBERTSON" wrote:
How can I use 2 Application.Username(s) in and If/Then statement?
For example:
If Application.UserName <> "Bob Jones" Or Application.UserName <> "Mike
Smith" Then
Any help would be greatly appreciated.
Thank You!
.
- Prev by Date: Re: Function to return formula
- Next by Date: Sorting in an Excel Chart won't work properly
- Previous by thread: Re: Application.UserName Question
- Next by thread: Sorting in an Excel Chart won't work properly
- Index(es):
Relevant Pages
|