Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8730417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:01:01+00:00 2026-06-13T09:01:01+00:00

I am currently using Workbooks.Open to process a large number of files contained in

  • 0

I am currently using Workbooks.Open to process a large number of files contained in a directory. But opening and closing these files make the files appear in the task bar and I wanted to avoid the constant flickering.

I got a suggestion from that I can use CreateObject to create a new instance since that opens a new Excel instance which is hidden.

  1. Is there any other difference between the two ways of opening new workbooks in terms of performance?

  2. Also, should I just use one instance of Excel created using CreateObject to open all Workbooks or do I need to create one instance for each workbook I have to process (which seems like a waste of lot of memory and less speed)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:01:02+00:00Added an answer on June 13, 2026 at 9:01 am

    Workbooks.Open uses the current MS Excel instance and CreateObject(“Excel.Application”) creates a new MS Excel instance. You can read up on CreateObject here.

    Simply issuing a Workbooks.Open after creating a new instance will not ensure that the workbooks open in the new instance. You will have to bind with it. For example

    Dim oXLApp As Object, wb As Object
    
    Set oXLApp = CreateObject("Excel.Application")
    
    '~~> Hide Excel
    oXLApp.Visible = False
    
    '~~> Open files
    Set wb = oXLApp.Workbooks.Open("C:\Sample.xls")
    

    Regarding your other question

    Also, should I just use one instance of Excel created using CreateObject to open all Workbooks or do I need to create one instance for each workbook I have to process

    You don’t need several instances. You can work with one instance. For example

    Dim oXLApp As Object, wb As Object
    
    Set oXLApp = CreateObject("Excel.Application")
    
    '~~> Hide Excel
    oXLApp.Visible = False
    
    '~~> Open files
    Set wb = oXLApp.Workbooks.Open("C:\Sample1.xls")
    
    '
    '~~> Do some Stuff
    '
    
    wb.Close (False)
    
    '~~> Open files
    Set wb = oXLApp.Workbooks.Open("C:\Sample2.xls")
    '
    '~~> Do some Stuff
    '
    
    wb.Close (False)
    
    '
    '~~> And So on
    '
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using the following code to open workbooks and search for particular
Currently using Google Analytics as a supplement to our paid tracking software, but neither
heres what I'm currently using: Rails -v 3.2.3 I'm trying to make a path
Currently using a really simple Twisted NameVirtualHost coupled with some JSON config files to
I currently import 12000+ xml files into an excel workbook using the following vba:
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted
Currently using MySQL version 5.1.6 This is my first real world build and so
Currently using Xcode 4.2 and I have two view controllers (1 and 2). I
I currently using android NDK to write some native code in C. I have
I'm currently using the NEST ElasticSearch C# Library for interacting with ElasticSearch. My project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.