+ Reply to Thread
Results 1 to 3 of 3

Activate next workbook

  1. #1
    Registered User
    Join Date
    11-16-2019
    Location
    Serbia
    MS-Off Ver
    2013
    Posts
    8

    Activate next workbook

    Hi all,

    Every day I export 4 workbooks from Navision. I would like to create a macro that will put all 4 workbooks into one and then do some calculations. The problem is that these workbooks have different names every day. Is there a way to activate the next workbook regardless of the name?

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Activate next workbook

    You can put them into 1 single folder, and maybe loop through all the workbooks in that folder.
    Cheers!
    Deep Dave

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Activate next workbook

    Hi, Mladen82,

    putting them into a directly and use Dir() and a For Each ... Next-loop would let you do most anything including putting them together.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. Activate Workbook, when workbook name is changing.
    By wilco02 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2019, 01:56 PM
  2. Workbook.Activate not firing when workbook opens
    By fbxiii in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-05-2018, 10:08 AM
  3. [SOLVED] Activate Workbook using name in a cell from another workbook
    By Xenthys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2017, 04:35 AM
  4. Activate open workbook from range in another workbook
    By Declamatory in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2016, 10:28 AM
  5. [SOLVED] Change activate workbook to be vba created workbook
    By timtim89 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-18-2012, 09:24 AM
  6. [SOLVED] Workbook.Activate / Window.Activate problem
    By Tim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2006, 07:40 PM
  7. Replies: 2
    Last Post: 03-21-2005, 08: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