Results 1 to 8 of 8

error file not found despite it's existed

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-11-2021
    Location
    Tripoli
    MS-Off Ver
    Excel 2016 ,windows 10 64bit
    Posts
    409

    error file not found despite it's existed

    hello
    I have this code to opens specific page in specific file when write in cell A1 it gives me error the file not found I 'm sure about the file is existed in my directory
    Const cAdobeReaderExe As String = "C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe"
    
    Public Sub Open_PDF_At_Page()
    
        Dim PDFfile As String
        Dim AdobeCommand As String
        
        PDFfile = "C:\Users\alhagag\Desktop\files\asd1.pdf"
        
        'AdobeCommand = " /a ""page=2=Open Actions"" "
            AdobeCommand = " /a ""page=" & ActiveSheet.Range("A1").Value & "=Open Actions"" "
    
        
        Shell cAdobeReaderExe & AdobeCommand & Chr(34) & PDFfile & Chr(34), vbNormal
    
    End Sub
    any suggestion to solve this problem I truly appreciate
    Attached Files Attached Files
    Last edited by 6StringJazzer; 04-16-2021 at 09:17 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Further Development based on File existed
    By wunderbartina in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2014, 09:03 AM
  2. Copying file but receive an Run-time error'53' - File not found
    By jeffreybrown in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2013, 06:40 PM
  3. File Not Found error when opening User Form - need help tracing root of error
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2013, 03:48 PM
  4. error file cannot be found
    By Aquila in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2010, 04:18 PM
  5. File not found error
    By Rick_Stanich in forum Excel General
    Replies: 3
    Last Post: 12-17-2009, 10:21 AM
  6. How to change closed file name - Error: file not found
    By PGM in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2006, 09:10 AM
  7. Replies: 4
    Last Post: 09-13-2005, 09:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1