+ Reply to Thread
Results 1 to 3 of 3

Workbooks.Open method!

  1. #1
    Registered User
    Join Date
    10-03-2011
    Location
    Quebec, Canada
    MS-Off Ver
    Excel 2010
    Posts
    29

    Exclamation Workbooks.Open method!

    Hi there,

    here is a small context:
    I created a worksheet for project manager to fill bi-weekly with their project's status. One worksheet per project. So each project manager have 1 excel file with many worksheets since they all have more than one project. Each worksheet as a unique name (project's id).

    I created a workbook for the project management office (PMO). In that workbook, I have different worksheets and one of them lists all projects with some of their info. For that worksheet to work, I need to have a copy of all the worksheets.

    I created a VBA macro that will open all excel file in the same folder and loop through all worksheet and copy them into the PMO workbook.

    It was working well until recently and I just can't find why it stopped working.

    Basically, the VBA macro loops through all excel files in the current folder. Open them one by one and loops through all worksheet except the one titled "Listes" and copy them into the main workbook. Pretty straight forward.

    The thing is that now, when I try to open a workbook using Workbooks.Open(path_to_the_workbook), it opens it, make it active and that's it. It never reaches the next line of code in my VBA.

    Any idea what's happening?

    Here is the code:
    Please Login or Register  to view this content.
    Last edited by nfuids; 10-03-2011 at 03:46 PM.

  2. #2
    Registered User
    Join Date
    10-03-2011
    Location
    Quebec, Canada
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Problem with Workbooks.Open method!

    So in the above code, the debugger never reaches the line

    SupprimeNamedRange chargeProjetWorkbook

  3. #3
    Registered User
    Join Date
    10-03-2011
    Location
    Quebec, Canada
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Workbooks.Open method!

    Any idea what I could do to help in the debugging?

+ 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