LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Ensure Workbooks in the same Excel Application

I have developed a Microsoft Excel tool that automatically creates separate
Excel Workbooks that are intended to be used for data storage, such that they
effectively act as databases.

The function I have used to check whether these data storage Workbooks are
open in the active window, do not necessarily recognise that the Workbooks
are open, if the Workbooks are open in another Excel application on my
desktop. I really need to be able to ensure that when the data storage
Workbooks are opened, they appear in the same Excel application where the
controlling Excel tool is active.

Does anyone have any suggestions for achieving this?

The function I have used to check that the Workbooks are open is:

Function IsWorkbookOpen(WorkbookName As String) As Boolean
'Checks to see if a Workbook, with name 'WorkbookName' is currently open

Dim Wkb As Workbook

On Error Resume Next
Set Wkb = Workbooks(WorkbookName)

If Not Wkb Is Nothing Then
IsWorkbookOpen = True
End If

Set Wkb = Nothing

End Function

And, if required, I have used the following line to create the data storage
Workbook

ThisWorkbook.Workbooks.Add

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200511/1
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using workbooks.open after new instance of excel application George J Excel Programming 3 September 16th 04 02:00 PM
Transform MS Excel Workbooks to Web-based Application Diane Excel Programming 0 August 3rd 04 04:54 PM
Transform MS Excel Workbooks to Web-based Application Diane Excel Programming 0 August 3rd 04 04:54 PM
Transform MS Excel Workbooks to Web-based Application Diane Excel Programming 0 August 3rd 04 04:54 PM
Transform MS Excel Workbooks to Web-based Application Diane Excel Programming 0 August 3rd 04 04:54 PM


All times are GMT +1. The time now is 07:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"