ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto Open (https://www.excelbanter.com/excel-programming/302707-auto-open.html)

Karen[_12_]

Auto Open
 
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


JulieD

Auto Open
 
Hi Karen

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

Cheers
JulieD

"Karen" wrote in message
...
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




Norman Jones

Auto Open
 
Hi Karen,

Try double quotes:

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


---
Regards,
Norman



"Karen" wrote in message
...
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




Karen[_12_]

Auto Open
 

-----Original Message-----
Hi Karen

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

Cheers
JulieD

"Karen" wrote in

message
...
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



.
Thank you so much for your help - Is it possible to make

any of the text bold?

Thank you again

Karen[_12_]

Auto Open
 

-----Original Message-----
Hi Karen,

Try double quotes:

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

only", _
vbOKOnly, "ATTENTION"


---
Regards,
Norman



"Karen" wrote in

message
...
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



Thank you so much for your help.

Karen


Dave Peterson[_3_]

Auto Open
 
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



Karen wrote:

-----Original Message-----
Hi Karen

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

Cheers
JulieD

"Karen" wrote in

message
...
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



.
Thank you so much for your help - Is it possible to make

any of the text bold?

Thank you again


--

Dave Peterson



All times are GMT +1. The time now is 03:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com