Visual Basic Shell() Command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • risk32
    New Member
    • Mar 2008
    • 98

    Visual Basic Shell() Command

    I seem to be having a "brain fart" with the Shell() command for Visual Basic.
    Either that, or what I'm trying to can't be done and I'm just a noob for trying.

    Anyways, here's what I'm trying to do:
    Private Sub cmdLink_Click()
    Shell ("C:\Program Files\Microsoft Office\OFFICE11 \POWERPNT.EXE" "lblLink4.capti on")
    End Sub

    Here's an example of what lblLink4.captio n could read:
    "\\yofs13\374og \03_36AS_DUTY_D ESK\Temp Duty Desk Web Page Files\AIRFIELD\ JANUARY\01\01_J AN.ppt"

    All I need to do is use the caption from lblLink4 as a path for the shell command. Unfortunately, I'm fairly new to VB (only 2 yrs. exp) and have no idea if this is even possible. Any help on this qould be greatly appreciated.
  • Stang02GT
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    risk,

    Welcome to the Scripts. To receive a better and more timely response to your question, post it in the respective forum. If you go to the Blue navigation bar at the top of the screen, you will see under the Forums section there is a specific forum for Visual Basic Questions, post your question in there for the best chance of it getting looked at.



    Thank You!

    Comment

    Working...