+ Reply to Thread
Results 1 to 2 of 2

'Consolidate' Macro stopped working

  1. #1
    Registered User
    Join Date
    03-17-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    69

    'Consolidate' Macro stopped working

    Hi Guys,

    I have been using a bit of code I got on here, it is:


    Please Login or Register  to view this content.
    Excuse the bit at the end, that is just tidying up formatting.

    Anyhow, this has all worked well but I have recently re-installed my system and changed the filepath (it is right, I can get a macro to open it) but the above macros isn't doing anything other than setting up my consolidate sheet and formatting it - it isn't opening any files.

    Any ideas why?

    Thanks

  2. #2
    Registered User
    Join Date
    03-17-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: 'Consolidate' Macro stopped working

    I have managed to make it work but don't understand the reason it now needs this. I guess the problem is coming in about a third of the way down with:

    Please Login or Register  to view this content.
    The next line is:

    Please Login or Register  to view this content.
    But this isn't giving me any results (I put in a bit which gives me an error code if fname = 0). If I amend it to be:

    Please Login or Register  to view this content.
    It gives me results. However it fails at:

    Please Login or Register  to view this content.
    Again, it works if I roll in the fpath to give:

    Please Login or Register  to view this content.
    Now it seems to work. But why!? Why is the Chdir not bringing me to the specified directory? Why is my workbook open function not working with the fname I have specified (I presume fname is taking on only the name and not the path, even though I have specified path...).

    I am confused as to why this has changed...

+ 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. Web Scrapping Macro stopped working
    By Tejas.T in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2013, 04:00 PM
  2. Macro Stopped Working
    By andybason in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2012, 01:20 PM
  3. Macro stopped working.
    By joleen in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-06-2011, 05:37 AM
  4. Excel 2007 : Macro stopped working
    By jaw0001 in forum Excel General
    Replies: 5
    Last Post: 10-13-2010, 07:59 AM
  5. Excel 2007 : Macro Code Stopped Working
    By stevo_300 in forum Excel General
    Replies: 5
    Last Post: 04-06-2010, 07:57 AM

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