+ Reply to Thread
Results 1 to 5 of 5

Navigate through workbooks, urgent help needed, DEADLINE

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Navigate through workbooks, urgent help needed, DEADLINE

    I will apologise in advance, if there is already an existing thread answering my question.

    I currently have a excel based 'system' that is basically consist of different workbooks. To navigate from one workbook to another I have written the macro:

    Workbooks.Open Filename:= _
    "C:\...\workbook.xlsm" _
    , UpdateLinks:=3
    Workbooks("original workbook").Close

    This was fine until I noticed a problem. The problem is that the macro code I wrote is built upon the file directory for my computer, however as soon as I bring this system to my school, the file directory becomes invalid. Therefore I am hoping someone can provide me with an easy solution (as you can see I'm not very good with Excel) -.-'.

    Thank you in advance

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Navigate through workbooks, urgent help needed, DEADLINE

    Are the workbooks in the same directory?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Navigate through workbooks, urgent help needed, DEADLINE

    Yes they're all within the same folder

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Navigate through workbooks, urgent help needed, DEADLINE

    Not 100% sure what you are doing put when opening files you can use ThisWorkbook.Path instead of a hard-coded path.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Navigate through workbooks, urgent help needed, DEADLINE

    Thanks for the solution I'll try it at school tomorrow and see if this works

    Thank you

+ 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. Urgent help needed
    By spursrule68 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2012, 05:03 PM
  2. Urgent help required, deadline 18.00 today
    By khalid79m in forum Excel General
    Replies: 2
    Last Post: 12-27-2006, 01:19 PM
  3. Urgent help needed. Linking between workbooks
    By joseteo in forum Excel General
    Replies: 4
    Last Post: 09-05-2006, 02:41 AM
  4. Help Needed Urgent
    By BiggieD in forum Excel General
    Replies: 7
    Last Post: 04-19-2006, 12:04 PM
  5. [SOLVED] Urgent help needed PLEASE
    By Bob Newman in forum Excel General
    Replies: 12
    Last Post: 01-02-2006, 11:35 PM

Tags for this Thread

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