Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Create Sticky (Always-on-top) Popup


I'm new to VBA.

1) How can I create a sticky (Always-on-top) popup
MsgBox "This message is sticky"
The above code will pop up a dialog, but how to make it sticky?

2) How to create a function which customize the content of the popup?
I would like to create a function like this:
Fictional Code: Function Messagebox(text, sticky_or_not)

Thank you.

--
Additional info about my computer:
- Office XP
- Windows XP Pro


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Create Sticky (Always-on-top) Popup

Look into making a userform and ".Show, vbModeless".
You can change the text by setting the .Caption of a label on the userform :
UserForm1.Label1.Cation="Some new text"

Otherwise, explain what you mean by "sticky".

NickHK

"0-0 Wai Wai ^-^" wrote in message
...

I'm new to VBA.

1) How can I create a sticky (Always-on-top) popup
MsgBox "This message is sticky"
The above code will pop up a dialog, but how to make it sticky?

2) How to create a function which customize the content of the popup?
I would like to create a function like this:
Fictional Code: Function Messagebox(text, sticky_or_not)

Thank you.

--
Additional info about my computer:
- Office XP
- Windows XP Pro




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Create Sticky (Always-on-top) Popup

"Sticky" here means the window/dialog is always on top of the screen. In other
words, keep it on top.

--
Additional info about my computer:
- Office XP
- Windows XP Pro

"NickHK" ¦b¶l¥ó
¤¤¼¶¼g...
Look into making a userform and ".Show, vbModeless".
You can change the text by setting the .Caption of a label on the userform :
UserForm1.Label1.Cation="Some new text"

Otherwise, explain what you mean by "sticky".

NickHK

"0-0 Wai Wai ^-^" wrote in message
...

I'm new to VBA.

1) How can I create a sticky (Always-on-top) popup
MsgBox "This message is sticky"
The above code will pop up a dialog, but how to make it sticky?

2) How to create a function which customize the content of the popup?
I would like to create a function like this:
Fictional Code: Function Messagebox(text, sticky_or_not)

Thank you.

--
Additional info about my computer:
- Office XP
- Windows XP Pro






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Create Sticky (Always-on-top) Popup - 2


Look into making a userform and ".Show, vbModeless".
You can change the text by setting the .Caption of a label on the userform :
UserForm1.Label1.Cation="Some new text"


It seems not what I do.
What I want is to use functions to customsie the text.
For example, I type a formula in A1 - Messagebox(condition, text,
sticky_or_not).
When the condition is met, the message will popup (and will be always on top of
the screen if you select this option).




"NickHK" ¦b¶l¥ó
¤¤¼¶¼g...
Look into making a userform and ".Show, vbModeless".
You can change the text by setting the .Caption of a label on the userform :
UserForm1.Label1.Cation="Some new text"

Otherwise, explain what you mean by "sticky".

NickHK

"0-0 Wai Wai ^-^" wrote in message
...

I'm new to VBA.

1) How can I create a sticky (Always-on-top) popup
MsgBox "This message is sticky"
The above code will pop up a dialog, but how to make it sticky?

2) How to create a function which customize the content of the popup?
I would like to create a function like this:
Fictional Code: Function Messagebox(text, sticky_or_not)

Thank you.

--
Additional info about my computer:
- Office XP
- Windows XP Pro






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Create Sticky (Always-on-top) Popup - 2

You can make a public function and show the userform from there.

Public Function TestUDF(argRange As Range) As Long
If argRange.Value10 Then UserForm1.Show vbModeless
TestUF = 100
End Function

NickHK

"0-0 Wai Wai ^-^" wrote in message
...

Look into making a userform and ".Show, vbModeless".
You can change the text by setting the .Caption of a label on the

userform :
UserForm1.Label1.Cation="Some new text"


It seems not what I do.
What I want is to use functions to customsie the text.
For example, I type a formula in A1 - Messagebox(condition, text,
sticky_or_not).
When the condition is met, the message will popup (and will be always on

top of
the screen if you select this option).




"NickHK" ¦b¶l¥ó
¤¤¼¶¼g...
Look into making a userform and ".Show, vbModeless".
You can change the text by setting the .Caption of a label on the

userform :
UserForm1.Label1.Cation="Some new text"

Otherwise, explain what you mean by "sticky".

NickHK

"0-0 Wai Wai ^-^" wrote in message
...

I'm new to VBA.

1) How can I create a sticky (Always-on-top) popup
MsgBox "This message is sticky"
The above code will pop up a dialog, but how to make it sticky?

2) How to create a function which customize the content of the popup?
I would like to create a function like this:
Fictional Code: Function Messagebox(text, sticky_or_not)

Thank you.

--
Additional info about my computer:
- Office XP
- Windows XP Pro










Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
create popup message Ann Excel Worksheet Functions 6 November 13th 08 05:43 AM
How do I create a popup window based on a cell value? bumper338 Excel Discussion (Misc queries) 2 November 28th 06 03:05 PM
How do I create a popup notification in excel ? Bear Hunter Excel Worksheet Functions 8 November 16th 06 11:26 PM
Create a Popup box Darius Excel Discussion (Misc queries) 1 March 2nd 06 05:49 PM
How do i create a popup window (a macro ?) Susanne Excel Programming 3 April 15th 05 02:16 PM


All times are GMT +1. The time now is 04:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"