Information box type thing

daywalker

New Member
Joined
Mar 9, 2006
Messages
9
Hi all, How do I get a sheet to display an information box, IE: not an instruction box with an OK button. To say something like "Produced by Daywalker"? TIA :-?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about using the drawing toolbar and select one of the shapes. Draw the shape and add text to it. Would this work? It will put a shape with text on the sheet.
 
Upvote 0
I am guessing you want an OK button to clear it? Then you could put this bit of code in the ThisWorkbook module:

Code:
Private Sub Workbook_Open()
MsgBox "Produced by Daywalker"
End Sub
 
Upvote 0
Have the ThisWorkbook Open Event, Select Cell: A1, on the Sheet you want displayed show the Assistant and have the Assistant show your message!


Private Sub Workbook_Open()
'ThisWorkbook code module!

Assistant.Visible = True

With Assistant.NewBalloon
'.Heading = "My Application"
.Heading = " "
'.Heading = Application.Name
.Text = "{cf 252}By:{cf 0} {ul 1}Joe Was, 2/2006{ul 0}"
'.Button = msoButtonSetNone
.Show
End With

Sheets("Sheet1").Select
Sheets("Sheet1").Range("A1").Select
End Sub


Then As an auternative or in conjunction with the above, add the same message to the Validation Box, which will also update the Assistant every time Cell: A1 on that sheet is selected, from the Excel Toolbar: Data - Validation...

Select the: Input Message [Tab]

Add your Title and Message.


Note: The Assistant is Modaless, but when used as a Ballon like the code above it becomesis Modal so it must have a Button. To avois this only use the Sheet & Range code in the above Event and load that cell with a Validation Message and it will be Modaless and not have a Button!

This is the tack I take!
 
Upvote 0
Can you provide all of your requirements at once? I am not sure what you are trying to accomplish.

A MsgBox uses specific Windows colors and you wouldn't want to change these and it's size defaults to the minimum size required for the items included.
 
Upvote 0
when a

work book is opened I want some kind of text box to appear announcing who produced the file. I want to be able to select my own text and coluors. Would it need to be a user form?
 
Upvote 0
That would probably be the best solution. It should give you all of the control you want.
 
Upvote 0
Review my Assistant code, Note at bottom.

Also, you can change the Assistant Box Coloe and the text color.

There are two attributes you can add to text in a balloon: color and underlining. There are 16 supported system colors you can use to emphasize text with color. You also can change the appearance of text in a balloon by underlining the text. Text attributes are embedded in the text of the balloon and are surrounded by braces in the code. The following example creates a new Office Assistant balloon that contains underlined heading text, red text, and blue text that is also underlined.

With Assistant.NewBalloon
.Heading = "Underlined {ul 1}Heading{ul 0}"
.Text = "Some {cf 249}Red{cf 0} text and some " & _
"underlined {cf 252}{ul 1}Blue{ul 0}{cf 0} text."
.Show
End With


And, Yes the UserForm or Shape Object is the best when it comes to custom looks!
 
Upvote 0

Forum statistics

Threads
1,225,215
Messages
6,183,631
Members
453,177
Latest member
GregL65

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top