Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / April 2008

Tip: Looking for answers? Try searching our database.

Show Image When File Opened

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bony_tony - 18 Apr 2008 15:29 GMT
How do I show a logo image for a few seconds each time a file is
opened?
Cheers
Tony
Tom Hutchins - 18 Apr 2008 15:55 GMT
Here are two ways...

This link describes how to create a splash screen userform on which you
could display the logo image:
http://www.xldynamic.com/source/xld.xlFAQ0007.html

Or, you could do something like the following:

Add the logo image to a blank worksheet in the workbook. Turn off the
gridlines
on the sheet (Tools >> Options >> View. Uncheck Gridlines, then click OK.)
Name the sheet MsgSht. Paste the following code in the ThisWorkbook module:

Private Sub Workbook_Open()
Sheets("MsgSht").Visible = xlSheetVisible
Sheets("MsgSht").Activate
Sheets("MsgSht").ScrollArea = "A1:O31"
Application.Wait Now() + TimeValue("0:00:03")  '3 seconds
Sheets("MsgSht").Visible = xlVeryHidden
Sheets("Sheet1").Activate
End Sub

Change Sheet1 to whatever sheet should be displayed after the warning.
Adjust the ScrollArea setting, if necessary.

If you are new to macros, this link to Jon Peltier's site may be helpful:
http://peltiertech.com/WordPress/2008/03/09/how-to-use-someone-elses-macro/

Hope this helps,

HUtch

> How do I show a logo image for a few seconds each time a file is
> opened?
> Cheers
> Tony
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.