Newbie 
Author Message
 Newbie

how would you add a msg box that would say..
with the same tittle bar "Whos logged in?" with the
name of the person logged in... with this script?
MsgBox objNet.UserName (You are logged in?),,
cTitlebarMsg ??????

-----------------------------

set objNet = CreateObject("Wscript.Network")
szUser = objNet.UserName

Const cTitlebarMsg = "Whos logged in?"

QuestionOne = MsgBox("Do you want to know whos logged
in?", 4, cTitlebarMsg)  



Tue, 06 Dec 2005 06:50:24 GMT  
 Newbie
how about
MsgBox(strMsg, 0, "Whos logged in")

Sorry, can't help you with how to get who is logged in into strMsg


Quote:
> how would you add a msg box that would say..
> with the same tittle bar "Whos logged in?" with the
> name of the person logged in... with this script?
> MsgBox objNet.UserName (You are logged in?),,
> cTitlebarMsg ??????

> -----------------------------

> set objNet = CreateObject("Wscript.Network")
> szUser = objNet.UserName

> Const cTitlebarMsg = "Whos logged in?"

> QuestionOne = MsgBox("Do you want to know whos logged
> in?", 4, cTitlebarMsg)



Tue, 06 Dec 2005 09:50:26 GMT  
 Newbie
Dim wnet
 Set wnet=CreateObject("Wscript.Network")
 strUsername=wnet.username
MsgBox (strUsername, 0, "Who Is Logged In?")

--

need to e-mail me off list just get rid of "your fears" and
drop me a line.


Quote:
> how about
> MsgBox(strMsg, 0, "Whos logged in")

> Sorry, can't help you with how to get who is logged in into strMsg



> > how would you add a msg box that would say..
> > with the same tittle bar "Whos logged in?" with the
> > name of the person logged in... with this script?
> > MsgBox objNet.UserName (You are logged in?),,
> > cTitlebarMsg ??????

> > -----------------------------

> > set objNet = CreateObject("Wscript.Network")
> > szUser = objNet.UserName

> > Const cTitlebarMsg = "Whos logged in?"

> > QuestionOne = MsgBox("Do you want to know whos logged
> > in?", 4, cTitlebarMsg)



Tue, 06 Dec 2005 11:01:39 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ***NEWBIE ALERT***NEWBIE ALERT***NEWBIE ALERT***

2. <newbie>HELP!</newbie>

3. <newbie>Help! v2</newbie>

4. Newbie:export to Excel

5. Newbie requires help with IsMissing() function

6. Newbie wants to Learning VBA

7. newbie: a startup module

8. newbie: Access error handling

9. Newbie: DAO delete records

10. Newbie: Dim for database

11. Access97 VBA newbie question

12. Newbie: How to set txt box to be visible, with option from combo list

 

 
Powered by phpBB® Forum Software