Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello All, I am trying to get a splash screen to Say Hello and the
persons name registered to that computer. I have the code to retrieve the username. The problem is that i have to pieces to a puzzle the actual splash screen is composed of a userform that I cannot find a way to enter the MsgBox "Hello " & Application.UserName & ", command this will give you Hello Person Name, but with a built in msgbox. I cannot get the msgbox to close automatically after 5 seconds but I can close the userform after 5 seconds so I have two pieces that I can not find a way to fit together. example useform: Private Sub UserForm_Activate() Application.OnTime Now + TimeValue("00:00:05"), "KillTheForm" End Sub example MsgBox: MsgBox "Hello " & Application.UserName & ", ? How can I intergrade these two? I am out of ideas is there anyone that knows how? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why not use a userform to create a custom message box that will close
after 5 seconds just add the buttons you want Zigball wrote: Hello All, I am trying to get a splash screen to Say Hello and the persons name registered to that computer. I have the code to retrieve the username. The problem is that i have to pieces to a puzzle the actual splash screen is composed of a userform that I cannot find a way to enter the MsgBox "Hello " & Application.UserName & ", command this will give you Hello Person Name, but with a built in msgbox. I cannot get the msgbox to close automatically after 5 seconds but I can close the userform after 5 seconds so I have two pieces that I can not find a way to fit together. example useform: Private Sub UserForm_Activate() Application.OnTime Now + TimeValue("00:00:05"), "KillTheForm" End Sub example MsgBox: MsgBox "Hello " & Application.UserName & ", ? How can I intergrade these two? I am out of ideas is there anyone that knows how? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Fisrt you need to reference the "Windows Script Host Object Model" (in
VBE - Tools == References... , check Windows Script Host Object Model then click OK) then try this: Sub test() CreateObject("WScript.Shell") _ .Popup "Hello " & Application.UserName, 2, _ "My Flash Box" End Sub HTH Sandy Zigball wrote: Hello All, I am trying to get a splash screen to Say Hello and the persons name registered to that computer. I have the code to retrieve the username. The problem is that i have to pieces to a puzzle the actual splash screen is composed of a userform that I cannot find a way to enter the MsgBox "Hello " & Application.UserName & ", command this will give you Hello Person Name, but with a built in msgbox. I cannot get the msgbox to close automatically after 5 seconds but I can close the userform after 5 seconds so I have two pieces that I can not find a way to fit together. example useform: Private Sub UserForm_Activate() Application.OnTime Now + TimeValue("00:00:05"), "KillTheForm" End Sub example MsgBox: MsgBox "Hello " & Application.UserName & ", ? How can I intergrade these two? I am out of ideas is there anyone that knows how? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sandy your great - Thanks I'll try this asap!
Sandy wrote: Fisrt you need to reference the "Windows Script Host Object Model" (in VBE - Tools == References... , check Windows Script Host Object Model then click OK) then try this: Sub test() CreateObject("WScript.Shell") _ .Popup "Hello " & Application.UserName, 2, _ "My Flash Box" End Sub HTH Sandy Zigball wrote: Hello All, I am trying to get a splash screen to Say Hello and the persons name registered to that computer. I have the code to retrieve the username. The problem is that i have to pieces to a puzzle the actual splash screen is composed of a userform that I cannot find a way to enter the MsgBox "Hello " & Application.UserName & ", command this will give you Hello Person Name, but with a built in msgbox. I cannot get the msgbox to close automatically after 5 seconds but I can close the userform after 5 seconds so I have two pieces that I can not find a way to fit together. example useform: Private Sub UserForm_Activate() Application.OnTime Now + TimeValue("00:00:05"), "KillTheForm" End Sub example MsgBox: MsgBox "Hello " & Application.UserName & ", ? How can I intergrade these two? I am out of ideas is there anyone that knows how? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Sandy do you kow how to use excel sort of like a host. I want to
host pdf files meaning i want to have a directory of the pdf files on a sheet sort of like hyperlinks but I need to embed them somehow because I am sending it as an email? Sandy wrote: Fisrt you need to reference the "Windows Script Host Object Model" (in VBE - Tools == References... , check Windows Script Host Object Model then click OK) then try this: Sub test() CreateObject("WScript.Shell") _ .Popup "Hello " & Application.UserName, 2, _ "My Flash Box" End Sub HTH Sandy Zigball wrote: Hello All, I am trying to get a splash screen to Say Hello and the persons name registered to that computer. I have the code to retrieve the username. The problem is that i have to pieces to a puzzle the actual splash screen is composed of a userform that I cannot find a way to enter the MsgBox "Hello " & Application.UserName & ", command this will give you Hello Person Name, but with a built in msgbox. I cannot get the msgbox to close automatically after 5 seconds but I can close the userform after 5 seconds so I have two pieces that I can not find a way to fit together. example useform: Private Sub UserForm_Activate() Application.OnTime Now + TimeValue("00:00:05"), "KillTheForm" End Sub example MsgBox: MsgBox "Hello " & Application.UserName & ", ? How can I intergrade these two? I am out of ideas is there anyone that knows how? |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
To do it manually use Insert == Object... and then select Adobe
Acrobat Document then select the file. HTH Sandy Zigball wrote: Hello Sandy do you kow how to use excel sort of like a host. I want to host pdf files meaning i want to have a directory of the pdf files on a sheet sort of like hyperlinks but I need to embed them somehow because I am sending it as an email? Sandy wrote: Fisrt you need to reference the "Windows Script Host Object Model" (in VBE - Tools == References... , check Windows Script Host Object Model then click OK) then try this: Sub test() CreateObject("WScript.Shell") _ .Popup "Hello " & Application.UserName, 2, _ "My Flash Box" End Sub HTH Sandy Zigball wrote: Hello All, I am trying to get a splash screen to Say Hello and the persons name registered to that computer. I have the code to retrieve the username. The problem is that i have to pieces to a puzzle the actual splash screen is composed of a userform that I cannot find a way to enter the MsgBox "Hello " & Application.UserName & ", command this will give you Hello Person Name, but with a built in msgbox. I cannot get the msgbox to close automatically after 5 seconds but I can close the userform after 5 seconds so I have two pieces that I can not find a way to fit together. example useform: Private Sub UserForm_Activate() Application.OnTime Now + TimeValue("00:00:05"), "KillTheForm" End Sub example MsgBox: MsgBox "Hello " & Application.UserName & ", ? How can I intergrade these two? I am out of ideas is there anyone that knows how? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Splash Screen off | Excel Programming | |||
Splash Screen | Excel Programming | |||
Splash screen and various screen resolutions | Excel Programming | |||
Splash Screen | Excel Programming | |||
VBA splash screen | Excel Programming |