+ Reply to Thread
Results 1 to 2 of 2

Setting a dynamic path for VBA

  1. #1
    Registered User
    Join Date
    05-12-2007
    Posts
    19

    Setting a dynamic path for VBA

    Setting a dynamic path for VBA


    Hello
    How are You all


    I have a problem regarding following issue, please kindly help me, thanks


    Daily I have to update some files of Xls & what I do is that I make new folder with the Today’s date , i.e last time I made 17-may-07 , on next day I’ll copy the same files into new folder 18-may-07 …

    I want make a macro that suppose dailyreport.xls file open automatically with the master file spouse shares.xls files

    I try to do



    Please Login or Register  to view this content.

    But it gives me debug error as its unable to recognize the folder name, but thing is Both files are in same folder!


    Please kindly share your knowledge!

    Thanks
    Regards,
    Last edited by mudraker; 05-18-2007 at 03:05 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    When using macros to open files it is always best to include the full path as well as the file name

    If the file is in the same folder as the workbook that is running the macro you could use

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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