Solved

Excel VBA

Posted on 1998-10-28
10
137 Views
Last Modified: 2012-05-04
In either Excel 95 or 97, can someone tell me of a way to run an avi within a worksheet. Thanking you for your help in advance.
0
Comment
Question by:timjc
  • 5
  • 4
10 Comments
 
LVL 3

Accepted Solution

by:
fguerreiro_inix earned 70 total points
ID: 1442163
Menu
Insert-Object-MovieClip


Hope this helps
Regards
0
 
LVL 3

Expert Comment

by:fguerreiro_inix
ID: 1442164
If you alredy have the *.avi in your workshett,
run the folowing code in a macro

    ActiveSheet.Shapes("Object 1").Select
    Selection.Verb Verb:=xlPrimary
    ActiveWindow.SmallScroll Down:=-5

0
 
LVL 2

Expert Comment

by:cartti
ID: 1442165
That's all very well, but how do you operate it ? It seems to be a bitmap of the first frame of the movie.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 2

Expert Comment

by:cartti
ID: 1442166
I've just found out. Right mouse click for pop-up menu.
0
 
LVL 3

Expert Comment

by:fguerreiro_inix
ID: 1442167
So it works?

Bye
0
 
LVL 2

Expert Comment

by:cartti
ID: 1442168
I've just found out. Right mouse click for pop-up menu.
0
 
LVL 2

Expert Comment

by:cartti
ID: 1442169
I've just found out. Right mouse click for pop-up menu.
0
 
LVL 3

Expert Comment

by:fguerreiro_inix
ID: 1442170
What about points cartti?
I' think I've put in the right way
0
 

Author Comment

by:timjc
ID: 1442171
I would have preferred it if the code was more flexible (rather than assuming the object would be named "Object1" etc.) Seems to be a recorded macro. Why is the line "ActiveWindow.SmallScroll Down:=-5 " necessary for example.
0
 
LVL 3

Expert Comment

by:fguerreiro_inix
ID: 1442172
Forget it

Bye
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
to transfer string from C lanaguage to VBA 4 64
Best way to parse out a json string in VB6? 10 163
MsgBox 4 59
VB 6 error 5 in windows 10 but not in XP 7 55
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question