Results 1 to 12 of 12

Query on VBA macro no longer working

Threaded View

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    Worcester
    MS-Off Ver
    Excel 2010
    Posts
    26

    Query on VBA macro no longer working

    Hello

    I have a macro with the following coding

    Sub NewBook1()
    '
    Set wbSource = ActiveWorkbook
     
    For Each ws In wbSource.Sheets
    ws.Copy
    Set wbDest = ActiveWorkbook
    wbDest.SaveAs strSavePath & filePrefix & " " & ws.Name & " " & fileSuffix
    wbDest.Close
    Next
     
    Application.ScreenUpdating = True
     
    '
    End Sub
    It is used to create a new workbook for each tab and to name that workbook the sams as the tab name.

    Since our work PC were upgraded to Windows 7 it intermittenly fails and needs to be restarted several times before it works.

    Any one have any ideas?

    Thanks

    Stephen
    Last edited by stephen.m.brown; 11-25-2013 at 09:35 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro no longer working?
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 02:26 PM
  2. Macro no longer working once sheet is protected
    By switchblade79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2012, 01:52 PM
  3. vba web query no longer working
    By Cicada in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2011, 07:56 PM
  4. Macro no longer working - Don Guillett
    By tanyhart in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2006, 01:10 PM
  5. [SOLVED] Help: Excel 4 macro suddenly no longer working
    By Keske Saram in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2005, 10:05 PM

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