Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8069075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:53:59+00:00 2026-06-05T12:53:59+00:00

I have an excel with two columns, one for the relative path of the

  • 0

I have an excel with two columns, one for the relative path of the pdf file and other column with the number page that I want to open.

In one computer, the excel works fine, when I double click in a row, excel calls to foxit reader and open the document.

However I have other computer in which this excel does not work. I get the error 5: invalid procedure call or argument.

How it works in one computer without problems, I think that the problem is in the other computer, not in the VBA code, but I don’t know what it can be the problem.

Which can be the cause of this error?

In both computers I use excel 2007 and I enabled macros when it prompts. In the computer that it works fine, I use windows 7 x64 and in the other computer I have windows 7 x86.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:54:01+00:00Added an answer on June 5, 2026 at 12:54 pm

    Well, the problem seem to be in the path of the files, in which I need to use double quiotes to solve the problem. In my case I have three string variables:

    pathReader: the path to the foxit
    pathDocument: the path to the pdf document
    numberPage: has /A page=x where x is the number page that I have in the cell.
    

    Then I create a commnad:

    command = """" & pathReader & """" & " " & """" & pathDocument & """" & " " & numberPage
    

    Finally I execute the command

    Shell command, vbMaximizedFocus
    

    With the number page is not needed to use the double quotes.

    It’s seems that in some computers it can be possible to have problems with the path of the files, perhaps with the blank spaces, so with the double quotes the problem is solved.

    For my experience, this problem does not occur always, in all the computers, but is better to use this solution because is more generic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel sheet with two column, one is a number , and
i have one excel file and that is containing price column.. now i need
I have a CSV file that I'm totaling up two ways: one using Excel
I have an excel spreadsheet with two columns, one with a list of exercises
I have an excel spreadsheet that has two columns. When I choose to save
I have an excel file (that I use as a template) with two rows.
I have two lists of names in Excel '07. Two columns in each file:
I have two columns of mostly identical strings in excel (including identical case), one
I have one excel document with two columns. i only add text in one
I have two workbooks in excel which I copy columns from one to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.