Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2006, 09:47 AM
Registered User
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to anup.bihani
Default Workbook Open


Hi,
Can I open the new Workbook in the invisible/hidden mode from an existing workbook using VBA (Workbooks.open).The Workbook is in on the same machine.I am using the following code :

Dim obook as Workbook
Set obook = Workbook.Open("FilePath")

but on executing the target workbook getting visible to the user.
I want the target workboook to be invisible/hidden, so that I can complete the required operations on it.
At last I m doing :

obook.close
Set obook = nothing
 
Old November 29th, 2006, 01:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 173
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Use:
Code:
Application.ScreenUpdating = False
' execute your code...
Application.ScreenUpdating = True
 
Old November 30th, 2006, 01:05 AM
Registered User
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to anup.bihani
Default


its working fine . thanx maccas





Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling Non-Existing Web Files with Workbook.Open white_wulff Excel VBA 1 May 14th, 2007 03:07 PM
Excel 2003 VBA - Need to open a workbook in a fold bablhous BOOK: Excel 2003 VBA Programmer's Reference 0 December 21st, 2006 02:50 PM
UserForm1.show fails if another workbook is open gjelson VB How-To 3 June 27th, 2006 02:58 PM
Error when open workbook gastoncs Excel VBA 2 December 21st, 2005 12:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.