Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 28th, 2005, 12:44 PM
Registered User
 
Join Date: Jan 2005
Location: London, London, United Kingdom.
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
Reply With Quote
  #2 (permalink)  
Old January 31st, 2005, 02:03 AM
Authorized User
 
Join Date: Jan 2005
Location: , , .
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



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:48 PM.


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