Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
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 September 2nd, 2005, 03:52 PM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Automatically selecting to open a file as readonly

Hello,

I have written a wicked VB program in Excel to consolidate information I am extracting from numerous separate Excel files that I need to open as read only, but don't want to sit there clicking OK for every file. Is there some VB code to automatically accept read-only?

Many thanks

Anders


 
Old September 6th, 2005, 12:54 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Anders,
Use ReadOnly parameter and you don´t have to hit Enter key

Workbooks.Open Filename:= "C:\Book1.xls", ReadOnly:=True

-vemaju







Similar Threads
Thread Thread Starter Forum Replies Last Post
Open link automatically in email collie HTML Code Clinic 2 May 28th, 2008 09:57 PM
Tip: How to open/close CDROM automatically crmpicco Javascript How-To 3 April 9th, 2008 05:30 AM
Automatically Open .ASPX in Internet Explorer toddw607 ASP.NET 2.0 Basics 1 April 2nd, 2007 08:05 AM
Open the "Open File" dialogue box piratelordx Access VBA 4 March 14th, 2006 10:08 PM





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