+ Reply to Thread
Results 1 to 5 of 5

Redirecting Pathway in Macro

  1. #1
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Redirecting Pathway in Macro

    Hi All,

    Just wondering if anyone can help me...

    The following macro works just fine when i set the path to - GetDesktop, but doesn't seem to work when i make a change...

    I need the macro to be directed to "\\werver\www\live\PARK\" as that is where the quotes live...


    Please find macro below:

    Please Login or Register  to view this content.

    Thanks, i'll appreciate any suggestions...

    Zanna
    Last edited by Zan03; 03-23-2010 at 05:05 PM.

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Redirecting Pathway in Macro

    Hi,

    For your info, VBA requires the path to be fully explicit ...with the drive and all the subdirectories ...

    HTH

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Redirecting Pathway in Macro

    You don't need the GetDesktop if the files are not on the desktop,you need the directory letter,C,J or whatever i.e the full path.For example

    C:\TestMacro, tip right click on a file in that directory & select Properties,you willsee the location listed. Then change the code tosomething like this
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: Redirecting Pathway in Macro

    Thank you for your responces!

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Redirecting Pathway in Macro

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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