+ Reply to Thread
Results 1 to 6 of 6

Different hard drive lettering

  1. #1
    Registered User
    Join Date
    12-24-2012
    Location
    Swinden
    MS-Off Ver
    Excel 2002
    Posts
    3

    Different hard drive lettering

    Hi all
    Very new to forum life so apologies if I get this wrong or my question is a bit basic.

    My problem is that for some unknown reason my work laptop hard drive is designated as d: not c:.
    Therefore when I write a macro that accesses winzip on my d: the same macro will not work on just about all other pc's with the normal c: designation.

    Is there a way I can make the drive references generic, I've read about unc drive naming but that seems to me to be network drives and I can't see how it relates to local drives.

    Many Thanks

    Mike

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Different hard drive lettering

    why do you need to use the path? what does the macro do?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    12-24-2012
    Location
    Swinden
    MS-Off Ver
    Excel 2002
    Posts
    3

    Re: Different hard drive lettering

    Hi Joseph
    The path leads to winzip to open a logfile and get at data for analysis in a user form/spreadsheet

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Different hard drive lettering

    it's real difficult to fix invisible code ;-)

  5. #5
    Registered User
    Join Date
    12-24-2012
    Location
    Swinden
    MS-Off Ver
    Excel 2002
    Posts
    3

    Re: Different hard drive lettering

    Code extract:

    Please Login or Register  to view this content.
    so the macro is looking in d: prog files for 7-zip and thus would not work on a pc with c:

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Different hard drive lettering

    you could use a simple check for folder
    Please Login or Register  to view this content.
    probably safer to use the shellexecute api to open the zip file but we haven't got enough to go on to know if that's viable

+ 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