+ Reply to Thread
Results 1 to 7 of 7

Module works on window XP but not window 7 (using same Excel 2007)

  1. #1
    Registered User
    Join Date
    01-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    5

    Module works on window XP but not window 7 (using same Excel 2007)

    Hi

    I have ran the following module via Excel 2007 on window XP platform, i have no issue on it. But when i run on Window 7 by using Excel 2007, a debug message pop out in BOLD as follow. I have changed the dir path, it does not work.

    Please Login or Register  to view this content.



    Please help. Highly appreciated. Many thanks
    Vickie
    Last edited by wongwlv; 02-16-2012 at 04:06 AM.

  2. #2
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Module works on window XP but not window 7 (using same Excel 2007)

    Which line is supposed to be bold?
    Good luck.

  3. #3
    Registered User
    Join Date
    01-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Module works on window XP but not window 7 (using same Excel 2007)

    Quote Originally Posted by OnErrorGoto0 View Post
    Which line is supposed to be bold?
    Please Login or Register  to view this content.
    Thanks

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Module works on window XP but not window 7 (using same Excel 2007)

    On Windows 7, that path will not exist. Also, you shouldn't use ChDir without using ChDrive first, since if your current directory is not on the same drive, ChDir won't work.

  5. #5
    Registered User
    Join Date
    01-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Module works on window XP but not window 7 (using same Excel 2007)

    Rory, many thans for the spot. However, I need to run the same module on window xp and window 7 (under Excel 2007), how should i change to make both work? Any advices? Thanks

  6. #6
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Module works on window XP but not window 7 (using same Excel 2007)

    Use
    Please Login or Register  to view this content.
    To get the path to my documents, then append any additional folder paths to that.

  7. #7
    Registered User
    Join Date
    01-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Module works on window XP but not window 7 (using same Excel 2007)

    THANK YOU... RORY.. Sorry it takes so long for me work on it on because i fall sick. Will try again

+ 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