+ Reply to Thread
Results 1 to 5 of 5

Macro not working for other workbooks

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Macro not working for other workbooks

    Hi.

    Below is a code which I added to my 'Quick access toolbar' (and which is based off a hidden workbook). I use this macro to fulfill tasks to regular excel spreadsheets that are not macro enabled, however, I can't seem to get this macro to work for other workbooks. I would appreciate if anyone can modify my code to work for other spreadsheets.

    Thank you.


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Macro not working for other workbooks

    open the desired workbook first so you can work on it

  3. #3
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Macro not working for other workbooks

    My question is based off open work books. I'm looking to modify the code to work for any work book and not just the one which it originates from. With the original workbook this macro works fine.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Macro not working for other workbooks

    Hi,

    Your problem is probably the following line:
    Please Login or Register  to view this content.
    You macro enabled spreadsheets are probably of type '.xlsm'.

    Identifying the extension of the workbook first such as:
    Please Login or Register  to view this content.
    Please let us know if you need additional help implementing the fix.

    Lewis

  5. #5
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Macro not working for other workbooks

    Here is additional information (using a working example) about using 'SaveAs' tested using Excel 2003.

    Lewis

    Please Login or Register  to view this content.

+ 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. Not equal to not working in macro to select workbooks.
    By EthanC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2012, 06:20 PM
  2. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  3. Macro to close all open workbooks save two not working
    By drajanm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2011, 05:58 AM
  4. Option Buttons with macro and working with 2 workbooks
    By Ren in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2006, 03:15 PM
  5. [SOLVED] Problem with Macro working in new workbooks that I open
    By chris_rip in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2005, 03:06 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