View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
tod tod is offline
external usenet poster
 
Posts: 2
Default Show msgbox only when....

Hey this is great! Perfect for what I need.

thanx

"Chip Pearson" wrote in message ...
Tod,

Look at the UserControl property. E.g.,

If Application.UserControl = True Then
MsgBox "Hello, World"
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Tod" wrote in message
...
Is there a way to show a msgbox only if the user opens the
workbook? The workbook is also opened by a script to
update some data. I don't want the msgbox code to run if
the workbook is opened from the script.

tod