macro running excel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GinnyP
    New Member
    • Sep 2006
    • 17

    #1

    macro running excel

    Hi,
    I am using a macro and am trying to open a spreadsheet using run app. It keeps telling me I have the wrong path. do I need to specify application before path name?

    C:\Documents and Settings\VPETRO NI\test.xls

    Thanks for your support
  • PEB
    Recognized Expert Top Contributor
    • Aug 2006
    • 1418

    #2
    Hi Virginia,

    When you use Run app macro you need to do it!

    If you change to follow hyperlink macro the way is enough to open your file!

    Best regards!

    Vladimir

    :)

    Comment

    • GinnyP
      New Member
      • Sep 2006
      • 17

      #3
      Originally posted by PEB
      Hi Virginia,

      When you use Run app macro you need to do it!

      If you change to follow hyperlink macro the way is enough to open your file!

      Best regards!

      Vladimir

      :)
      what do i need to add in to the about path name?

      Thanks
      Virginia

      Comment

      • PEB
        Recognized Expert Top Contributor
        • Aug 2006
        • 1418

        #4
        hm hm So....

        U need a little help...

        Create a module...
        in this module paste:

        Code:
        Function run_file(path)
        Application.FollowHyperlink path, , True
        End Function
        In your macro choose:
        RunCode
        And above write
        run_file("I:\pe rpericon.doc")

        Change "I:\perpericon. doc" with your file to open :)

        Best regards

        Vladimir

        Comment

        Working...