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 January 28th, 2005, 12:44 PM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default multiple instances of same spreadsheet opening

I have an Excel spreadsheet which is the front-end of a small app, with an Access 97 backend used as a data-store (don't ask the client wanted it this way!).

I am running a query in Excel (VBA) which executes a query within the database, like so:

Dim dbs As DAO.Database
Set dbs = DAO.OpenDatabase(AccessPath & AccessFile)

dbs.Execute ("APPEND_Data")

...but if I have another session of Excel open and run this via a button on the spreadsheet, it causes another instance of the same spreadsheet to open.

Any ideas?

Thks and Rgds
Jason
 
Old January 31st, 2005, 02:03 AM
Authorized User
 
Join Date: Jan 2005
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your question is too short in words for me to grasp it.
Can you show me the code where VBA is Opening Excel file?
Is it opeing a read-Only version of the file which is already opened?
Or is it opening a new window which opens by Windows-add New windows
It appears that you are probably not using separate files approach.
One for data-query outputs and the other for holding macros








Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple instances of paging user control thas123 ASP.NET 2.0 Professional 0 February 28th, 2008 02:24 AM
creating multiple instances programmatically dcher BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 4 December 28th, 2007 02:21 PM
Multiple browser instances Dilip Nagle Classic ASP Basics 1 September 29th, 2005 10:33 PM
Replace multiple instances of a String interrupt Javascript How-To 2 June 14th, 2005 06:48 AM
One form in multiple instances. Sink Access VBA 0 June 7th, 2004 04:25 AM





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