Quote of the Day

THEION ARTICLES

theionarticles.blogspot.com && speaka1000words.blogspot.com

Friday, November 14, 2008

Tips, Tips, Tips!!!

To delete all Hyperlinks in a Excel sheet...
==============================
1. Sub DeleteHyperLinks()
Sheet1.Hyperlinks.Delete
End Sub

2. And if you don’t need a reusable Sub routine, rather a one time fix, use the Immediate Window:

a. Select the Sheet to remove Hyperlinks from
b. Press Alt+F11 to open the VBE
c. On the VBE Main Menu choose View->Immediate Window
d. In the Immediate Window paste the following code then hit Enter

ActiveSheet.Hyperlinks.Delete

----> However the second one didn't work for me!!!


Watch Movies In a Spreadsheet
======================

Watch or listen to movies in Excel, while you work in Excel:

1. On the main menu click Insert->Object
2. Select Windows Media Player from the Object Type box and hit OK
3. Move and resize the WMP to your liking

Note: If you can’t resize the WMP object, switch to “Design Mode” by clicking the design mode button

Now we’ll add some code to tell the Windows Media Player object to Play and what file to play. Open the Visual Basic Editor(alt+F11), double click the worksheet that contains the WMP you just inserted and Paste the following code:

Sub PlayMovie()
'URL is the location of the movie - change appropriately
WindowsMediaPlayer1.URL = "C:/rb.wmv"
WindowsMediaPlayer1.Controls.Play
End Sub
Play the movie just as you would run a Macro: Tools->Macro->Macros

You may also want to create a couple of shortcuts to Hide and Stop playing the Movie if the boss approaches. Add the following code below the previous code:

Sub HideQuick()
WindowsMediaPlayer1.Visible = False
WindowsMediaPlayer1.Controls.pause
End Sub

Sub ShowQuick()
WindowsMediaPlayer1.Visible = True
WindowsMediaPlayer1.Controls.Play
End Sub
Next add shortcuts to the 2 macros (Tools->Macro->Macros->Options) and you have an instant ON/OFF switch at your fingertips.

SideNote: While watching a movie directly in Excel is interesting, my favorite way to watch a movie while working is using the stand alone Media Player with a few different options set.

From the Tools->Options menu check the box “Display On Top when in Skin Mode”. From the View menu select “Skin Mode” (a small skin works best). Move your movie to the bottom right or left of your screen.

With this setup I can work and also switch between apps and always have my movie visible, yet out of the way. Thanks to Kingzter.

No comments:

I am a Vegan. PeTA:- People for the Ethical Treatment of Animals


Make your own KFC sign at KentuckyFriedCruelty.com