+ Reply to Thread
Results 1 to 4 of 4

Syntax Compile Error - How to work around this (file path doesn't exist)

  1. #1
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Syntax Compile Error - How to work around this (file path doesn't exist)

    HI,

    I have the below code with is used to open a user guide file.
    This works fine at work as the path and file exist.

    Please Login or Register  to view this content.
    At home however when working on improvements this causes a compile error as the path doesn't exist. How do I work around this so that I don't get a Compile Error (I thought the ErrHandling would have done the job)?

    Thanks in advance
    Harribone
    Last edited by Harribone; 01-18-2015 at 06:37 AM. Reason: Removed sensitive information
    Say thanks, click *

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Syntax Compile Error - How to work around this (file path doesn't exist)

    You appear to have an extra double quote on the FollowHyperlink line ... ""\\

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Syntax Compile Error - How to work around this (file path doesn't exist)

    What an absolute idiot I am....


    Thanks TMS

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Syntax Compile Error - How to work around this (file path doesn't exist)

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] first timer using VB to cut and paste macro - getting compile error syntax error
    By jopedder in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2013, 11:45 AM
  2. [SOLVED] Work around for Run-time Error 445: Object Doesn't Support This Action (File Search)
    By JPDutch in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-05-2013, 08:48 AM
  3. [SOLVED] VBA Loop - Does file exist (Y/N) at the path specified?
    By always_learning in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-12-2012, 07:01 PM
  4. Syntax Error and Compile Error: Expected Line Number or Label...
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-31-2011, 09:59 AM
  5. error msg of link to a file that doesn't exist
    By ayl322 in forum Excel General
    Replies: 0
    Last Post: 03-03-2005, 04:32 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