Auto Open

  • Thread starter Thread starter Karen
  • Start date Start date
K

Karen

If I use the following code when a worksheet opens, How
can I put the "B3" in quotes within the code. When I do I
get an error.

Sub Auto_Open()
' AutoOpen Macro
MsgBox "To update list - Make changes to cell B3 only",
vbOKOnly, "ATTENTION"
End Sub
 
Hi Karen

MsgBox "To update list - Make changes to cell ""B3"" only"

Cheers
JulieD
 
Hi Karen,

Try double quotes:

MsgBox "To update list - Make changes to cell ""B3"" only", _
vbOKOnly, "ATTENTION"
 
-----Original Message-----
Hi Karen

MsgBox "To update list - Make changes to cell ""B3"" only"

Cheers
JulieD




.
Thank you so much for your help - Is it possible to make
any of the text bold?

Thank you again
 
-----Original Message-----
Hi Karen,

Try double quotes:

MsgBox "To update list - Make changes to cell ""B3"" only", _
vbOKOnly, "ATTENTION"
Thank you so much for your help.

Karen
 
Not in the msgbox. but you could build a small userform and format it anyway
you want.

then your auto_open sub looks more like:

sub auto_open()
userform1.show
end sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top