Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default 2 problems to solve

Hi all,

i've 2 problems connected with the opening of an excel file that i'm
not able to solve.

I would like to:

1) have my userform1 to be automatically shown (opened) when the file
is opened from its desktop icon

2) associate with this "opening" a .wma or .mp3 file to use as
soundtrack

just 2 simple things for you, impossible for me.

thanks in advance for your (quick) help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default 2 problems to solve

Use the Workbook_Open event to execute some code. In the ThisWorkbook
module of your VBA project write some code like this.

Private sub Workbook_Open()
Userform1.show
end sub

For the other problem I would suggest using the shell command. Shell
allows you to execute a DOS command.



furbiuzzu wrote:
Hi all,

i've 2 problems connected with the opening of an excel file that i'm
not able to solve.

I would like to:

1) have my userform1 to be automatically shown (opened) when the file
is opened from its desktop icon

2) associate with this "opening" a .wma or .mp3 file to use as
soundtrack

just 2 simple things for you, impossible for me.

thanks in advance for your (quick) help.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solve for X and Y Mark M Excel Worksheet Functions 9 September 28th 09 01:07 PM
Let's see if you can solve this. Sean[_2_] Charts and Charting in Excel 5 June 7th 07 05:14 PM
y i cannot solve it ? cjjoo Excel Worksheet Functions 2 September 26th 05 11:37 AM
Can Anyone Solve This One, Please, From Liz Lizmerrill Excel Programming 4 October 6th 04 11:08 PM
How do I solve this? Metallo[_3_] Excel Programming 14 July 12th 04 10:01 PM


All times are GMT +1. The time now is 08:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"