+ Reply to Thread
Results 1 to 3 of 3

Vba code to run my macro in all open workbooks

  1. #1
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Vba code to run my macro in all open workbooks

    Hi all,

    I have a macro to get copy of sheet named "Doc Info" from workbook File 1
    to active workbook.


    i could do it for one file on any active workbook.

    But what i would require is, upon executing this macro , i want this macro to get executed in all open workbooks( could be any numbers )

    . i want to move copy of sheet from File 1 to all open workbooks ( which i am doing it manualy for every file )
    All these open workbooks could be from any folder , wont be in same folder.

    So logic is to execute my macro apply in all open workbooks in my computer.

    Below is the code and i have attached file for test


    HTML Code: 
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,926

    Re: Vba code to run my macro in all open workbooks

    This is only meant as a hint:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Re: Vba code to run my macro in all open workbooks

    Hi ProtonLeah,

    I am geting Debug error on below line, please help. or Anybody can Help??

    HTML Code: 

+ 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. [SOLVED] Open two workbooks into one excel program, then macro code for button to switch between
    By oldboots in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-14-2013, 09:30 AM
  2. Workbooks.open method - vbs code
    By virencm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2011, 06:54 PM
  3. Code to work with two open workbooks
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2008, 02:39 AM
  4. My code try to open other workbooks.
    By Cabeza2000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2007, 08:09 AM
  5. macro or code to open multiple workbooks
    By Duane Reynolds in forum Excel General
    Replies: 1
    Last Post: 03-14-2006, 04:25 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