Re: MsgBox Timeout



Interesting. That definitely worked. Sorry for the confusion. I was going
by the Scripting Guys example here which is why I had the ().

http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar05/hey0314.mspx

"S Moran" wrote:

no, remove the parenthesis surrounding PopUp.

you have: objShell.PopUp("something in here")

you should have: objShell.PopUp "something in here"



"Marcus Cotey" <MarcusCotey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6071C063-C3C8-4567-9E45-79465D11B8FB@xxxxxxxxxxxxxxxx
Please elaborate...you are saying that the equation I am using to convert
the
AD password age to a readable format (nanoseconds to seconds to days) is
actually a subroutine even though I haven't defined it as a subroutine?

"S Moran" wrote:

but you are.
remove the parenthesis or set a variable to contain the return value



"Marcus Cotey" <MarcusCotey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5875EDA4-7B6B-482A-8CC3-34DF949856AC@xxxxxxxxxxxxxxxx
Before anyone replies let state first I have tried wshShell.PopUp and
it
won't work because I am displaying some output that it thinks is
calling a
subroutine.

So what I am doing is writing a login script for our company and part
of
that is displaying mapped drives as well as when the password expires.
Well
near as I can tell when I use the PopUp method it thinks the equations
I
have
in the script to determine password age is a subroutine and returns an
error
"Cannot use parantheses when calling a Sub" and the error Code:
800A0414.

I am not calling a subroutine but it seems to think so.

Here is the code:
objShell.PopUp ("*** MyCompany Windows Login Process***" & VbCrLf &_
"Good day " & objUser.FullName & VbCrLf &_
"Your password will expire on: " & VbCrLf &_
DateValue(dtValue + dblMaxPwdDays) & " (" & _
Int((dtValue + dblMaxPwdDays) - Now) & " days from today)." & VbCrLf &_
VbCrLf &_
"Current Drive Mappings: " & VbCrLf &_
strMsg & VbCrLf &_
VbCrLf &_
"If you are having login problems please " & VbCrLf &_
"contact the IT Help Desk at 555.555.5555", 0, "MyCompany Login
Script")

Any help would be greatly appreciated.




.



Relevant Pages

  • Re: Word 2004 VBA -> Applescript
    ... That sounds like a reason in itself for trying out AppleScript Studio. ... the main script file and call out to "action" handlers in another script ... subroutines, from tiny to small (my find & replace subroutine is the largest ... The truth is, despite the difficulty of working with VBA on the Mac, I ...
    (microsoft.public.mac.office.word)
  • Re: Javascript Confirm()
    ... need to display a confirmation alert to user. ... Below is the script I'm using in the Submit_Clicksubroutine. ... Dim strScript As String = "<script ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: The system cannot find the batch label specified
    ... "The system cannot find the batch label specified - RunReports" ... I've written quite an extensive shell script that uses multiple "call ... call:Log SUBSTART STARTING:RunReports SUBROUTINE ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: traversing (and accessing values in) a hash of hashes
    ... > This is the subroutine that builds the hash of hashes. ... therefore won't harm your script, ... How do you think you'd create that and iterate across it...? ... into lists and hashes at first. ...
    (perl.beginners)