Cmd Button Code To Display Video In Windows Media Player Object In Spreadsheet
Apr 22, 2009
I have a sample spreadsheet (uploaded to this thread) in which I have 10 command buttons named 'Video 1' to 'Video 10'. Next to these buttons is a Windows Media Player Object.
I require the code that upon clicking any of the video command buttons, the relevant video is opened and shown in the windows media object within the same sheet (sheet1).
I'm sure the code for each button will be the same apart from the cmd button reference number/name and the link to the file to be played.
If we assume all the videos are called as per their buttons i.e. Video 1.wmv, Video 2.wmv ... Video 10.wmv; and the location of these files is under 'C:Films', can someone post up some code for button 'Video 1' making it clear which variables to change for linking to the different files.
View 6 Replies
ADVERTISEMENT
Jul 21, 2006
I'm having some trouble with some VBA code written for Excel (Office 2003). I have a video file (in .wmv format) and a list of time stamps in an excel file. When I click a timestamp, I want to pop open the WMV and play it at that given time.
I've made some headway thanks to a few others, but I'm getting this "Run-time '424': Object required" error that I can't seem to fix. I've attached the file, and it occurs at the line "frmPlayer.Show" and I have no idea why!
View 9 Replies
View Related
Jun 25, 2014
When I run them from the module they both work, Sub 'Calculator' brings up the Windows calculator and doesn't open a new one each time, Sub 'Calculator1' opens a new one each time.
However, when I call 'Calculator' from my userform it does nothing unless the windows calulator is already running. 'Calculator1' works as normal.
[Code]....
View 2 Replies
View Related
Aug 16, 2005
Ive been having trouble inserting an avi clip into one of my test spreadsheets i have no problem actually inserting it using< Insert-object-media clip then insert the clip and saving, plays on my computer no prob but when i email it the file is large so i figure its there, the other person cannot open the file when they click the picture present they get a menu as to what clip do you want to play and broswe to find it
View 1 Replies
View Related
Feb 22, 2009
i m creating a formula that will automatically place players in the correct position based on the outcome and there rank.
I have created an example sheet and the results should be in cells E3:E15
View 6 Replies
View Related
Nov 14, 2011
What line of code do you need to include in you macro vba code to run a video file?
View 4 Replies
View Related
Aug 6, 2007
I have just messed up my explorer window and can't get it back the way it was.
I currently have three windows showing, Project, Properties and Code. Previously the windows were all linked so that if I widened the code window, the other two would become narrower. If I made the Project window taller, the Proerties window would automatically reduce in height.
My three windows are now totally independant of each other.
View 9 Replies
View Related
Jul 23, 2014
I am imagining a spreadsheet with the equivalent of an info button in each cell of column A. The idea is the user clicks the button to open a User Form containing additional info about the entitity represented by values on that row.
E.g., Row 1 is labels, row 2 is all about Bob, 3 is about Jane, 4 is about Freddy. If the user clicks the info button on row 3 then a user form opens up and displays additonal info about Jane.
I am wondering if there is a way for VB to identify which row the clicked button was on without having to write individual code for each button telling VB which row the button was on.
I am hoping there is some form button property I can reference or interrogate which will give me a cell address; a button.position property or similar. This will obviously save me a lot of coding if VB can dynamically determine which row is being interrogated as there will be a couple of hundred of these to start with, potentially thousands. (I realise Access is a better solution for database interrogation, but I have to work with excel at present).
Ultimately, the user form that the button calls up will have a list box on it and I want the list box to default to the entity on that row, and allow the user to browse the other entities if they want to.
If there isn't a solution for this I will just have a single info button for the users to click that opens the user form and then they can select the entity from a list box. But I would like to offer the "intelligent display" option but don't relish coding the equivalent of several hundred "You clicked button four hundred and seventy six, default to info card for bert".
View 4 Replies
View Related
Mar 2, 2014
Now I have all the data i require (for a bus punctuality log) im looking to compile all the results into 1 page but just not sure how exactly I would go about doing it. these results will be published to the media on 11th March.
As you can see from the "halfway results" all the data entered is hand entered and I was looking to do the final results in a similiar way, with having each bus number and having the amount of submissions made on that bus, how many times it was late and early, amount of total mins it was late, amount of total mins it was early and a average on how late it was etc. I also want to be able to add the total lateness of all the buses submitted on the spreadsheet (I can do that already).
View 14 Replies
View Related
Jun 25, 2009
Is it possible to modify the windows power settings in excel vba. I have this example, but it doesn't do anything.
Sub testPOWERCFG()
CreateObject("WScript.Shell").Run "POWERCFG /CREATE Custom1", 0, False
CreateObject("WScript.Shell").Run "POWERCFG /CHANGE Custom1 /monitor-timeout-ac 15", 0, False
CreateObject("WScript.Shell").Run "POWERCFG /CHANGE Custom1 /monitor-timeout-dc 10", 0, False
CreateObject("WScript.Shell").Run "POWERCFG /SETACTIVE Custom1", 0, False
End Sub
I need some code to create and activate a scheme whereby everything is on and also some code to revert back to the default settings on the machine.
View 3 Replies
View Related
Dec 5, 2012
Not sure of best way for this.If cell G10 has value show object1, if cell G10 has no value show object 2 ?
View 7 Replies
View Related
Dec 5, 2012
In my example you will see my name list that changes with a array to data validation. Seems like you can find ways around things most of the time but this time
View 4 Replies
View Related
May 23, 2006
to locate/display a help file, to a far right position with 80% height and 20% width.
Where do I find the property commands to do this? (with values explanations)
or can someone point me in the right direction.
Current working code, but displays centre...
Private Sub CB_HelpMain_Click()
Set Module1.HELPFILE = CreateObject("InternetExplorer.Application")
Module1.HELPFILE.Navigate "c: empsample_htmlfile.html"
Module1.HELPFILE.Visible = True
End Sub
View 5 Replies
View Related
May 28, 2009
I am having difficulty with a Windows Media Player (WMP) object in my spreadsheet. I go to design mode and set the desired size of the object in the spreadsheet; I then save and exit. Next time I open the file the object is much smaller. In fact every time I open the spreadsheet; save the spreadsheet and exit it gets smaller and smaller!
How I can LOCK the bugger in place - ideally by using the corner points of the cells - For example Top Left Corner of A1 to Bottom Right Corner of T36.
View 3 Replies
View Related
Jul 30, 2012
How do you use the Application.CommandBars in the CommandBar Object to find a button.
View 1 Replies
View Related
Nov 9, 2008
I have been looking at the ShowFilePicsDemo.xls from www.contextures.com written by Ron Coderre. This spreadsheet and macros allows a user to choose from a list a picture by name, and the macro references it with the location of the file, the opens the file and the picture appears in a specified range of cells on the spreadsheet.
I was hoping to use it but with very short clips (2-3 secs) as I need to go through about 350 clips one by one to look at oddities on them. I have manually started a macro to insert the video clip in the sheet using the tip given on a thread in this forum called "Playing a video during the presentation" where all the steps are explained. When I reread the macro however, the clip is embedded as an object and loses its identity which means that the macro has no reference to the location of the file which could be used for the next clip.
View 7 Replies
View Related
Sep 2, 2013
I am using excel 2010, i try to insert active x control command button insert but " cannot object insert" like this message came?
View 3 Replies
View Related
Oct 29, 2008
I have attached my excel database, as think I'm having a funny moment, I keep getting an error message of Object Reuired when I click on the form button to launch the Input Form, where have I gone wrong as to why the Input form will not load?
View 5 Replies
View Related
Nov 11, 2013
I'm trying to create a bracket for video game tournaments and I'm having trouble with some of the functionality I want it to have.
Right now, I have cells B7 and B9 that will pull player names from another check in sheet. I have another cell, D8, that I would like to have a drop down list in containing the contents of B7 and B9. Everything I see online says to use Data Validation, but apparently that tool can't make a list using cells that aren't next to each other, so that won't work. How else can I tell excel how to populate this list? It is vital that the cells be apart from each other because the visual formatting is necessary for displaying the bracket on a projector so that the players can see their match assignments.
In addition, I would like to have another drop down menu in another cell with a list of valid bracket sizes (4, 8, 16, 32, etc.), and have the cells of the sheet either be visible or invisible depending on how many max players can enter. In other words, if columns B, D, F, and H correspond to the number of rounds it will take to finish the tournament (3, 2, 1, and 0, respectively), I would like the sheet to display only the cells necessary for the tournament, pull player names into the left most cells needed from another worksheet used for sign ups, and auto populate all of the columns to the right of the column for first round with drop down lists for the players who could have won that match in the previous round.
View 1 Replies
View Related
Dec 23, 2009
Is there a way to have a spreadsheet NOT display a #N/A, #NUM, #VALUE, #NAME error just because of an empty associated cell in the formula? I know I can do it with qualifiers (eg. if(true, then, else). But is there way to have the sheet just not display the error. I'm just trying to make the sheet look better without writing the qualifying formulas.
View 2 Replies
View Related
Mar 25, 2009
i am trying to make and age table to see if a player is too old by years, months and days all i can do is Years i need something like the following
1/10/2009 cut off date birthday is 8/5/1991
all i can do is the following
=YEAR(A3)-YEAR(A2)
View 2 Replies
View Related
Mar 13, 2007
I'm trying to set up a web query that gets the Player Roster from Indians.com and one column is giving me trouble.
On the web site, this column is the player's height, listed as, for example, 6-2.
When the web query import is complete, this column displays a date instead of the height.... so 6-2 comes in as 2-June.
How do I massage this column to display the height and not a date?
View 9 Replies
View Related
May 22, 2009
I need a formula for comparing the scores of 4 players from games won or tied.
I want to know for each game who won, tied or lost.
Below is how I compare 1 player to another.
=IF(P12
View 9 Replies
View Related
Sep 24, 2008
Using excel 2003. Cannot insert command button on a spreadsheet we have. Almost all icons in the control toolbox are unavailable when Im on this specific spreadsheet. Any new documents I open work fine. Is there some kind of protected spreadsheet that wouldnt allow for a button, picture, textbox label to be inserted???
I didnt make the original sheet but am just editing and improving it.
I would really appreciate any advice you could give, I have attempted to attach a jpg showing the greyed out icons in my controltool box
View 12 Replies
View Related
Jan 15, 2009
I'd like to create a button that makes the "Find and Replace" popup come up when pressed. How to do this? (Ctrl + F is the shortcut for it)
View 3 Replies
View Related
Jan 26, 2009
I have an excel sheet that has 3 command buttons on it, i am wanting to open a saved excel sheet that i have on my shared drive from the command button. I know the path of the saved file but how do i get the button to open this file?
As well as this i this i also have another command button what i want to open another sheet in the excel document with the command buttons.
View 5 Replies
View Related
Apr 29, 2009
I have a macro attached on Sample 01 that outputs a couple files after a certain date. The problem is the date that it choses is always "todays" date and I want to be able to change the date, the cell that I need to be able to change is cell c2. The problem is the rest of the formulas in the cells change to number format and don't stay in date format.
how to add code to a button. I think I've more or less solved my own problem with merging the data of two spreadsheets together (not as cleanly as I'd like of coarse), but the problem is the person I'm going to train to use this spreadsheet is not very computer savvy and this needs to be as easy as possible. So I want them to just be able to click 3 buttons and be done with the process.
View 4 Replies
View Related
Feb 23, 2007
I have built a Form which displays data from a spreadsheet. The user opens the form by clicking on a command button from the spreadsheet. The Form initially opens with the data from Row 4 of the spreadsheet (because this is the first row of the spreadsheet which contains the data for the form). The user can then sequentially access other rows in the spreadsheet by clicking on buttons in the Form which advance the extraction by one row.
I would like to add a command button to each row of the spreadsheet that would open up the Form and set the values in the Form to the same row which the command sits on.
View 5 Replies
View Related
Feb 9, 2007
Is it possible to use VBA to call an existing Excel function? I want to have code that calls up the "Insert - Object" popup window in the same manner as it would if the user clicked the toolbar.
View 2 Replies
View Related
Oct 18, 2006
I run a small town pool league and use excell to track player handicaps, ect. we use a simple system for handicapping. Players can be from 2- to 7+ (2- 2 2+ 3- 3 3+ 4- 4 4+) and so on. if a player is a 2+ and wins they go to a 3- and so on. I want to be able to just type a W or an L and have it look up the players previous handicap and return a new handicap in the next field. I've allready figured out how to count the W's and L's and return the total for a teams weekly wins on another page, and give stats on a players wins and losses. I then print each sheet out weekly. Teams have 8 players but only play 5 each week so some players might not play for 2,3 or more weeks. I also use access to keep track of all the people that have played in the league. some players play a few sessions then quit for a few. this way i can keep track of their handicaps when not playing and havew a list of all the people that have played in the league. Can i get excel to transfer a players handicap to access each time it changes?
View 9 Replies
View Related