Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi Don,
thanks for your reply - it was very helpful and this is what i ended up using: Dim wBook As Workbook Dim bOpen As Boolean Dim sTestcase As String Dim sFile As String 'Determine if Workbook Open For Each wBook In Application.Workbooks If wBook.Name = sTestcase Then bOpen = True Exit For Else bOpen = False End If Next wBook If bOpen = False Then Workbooks.Open(sFile).RunAutoMacros Which:=xlAutoOpen End If cheers.... ....jurgenC! *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to: Open closed workbook/Search data tables/Return data to open workbook | Excel Discussion (Misc queries) | |||
How to determine the closed value? | Excel Discussion (Misc queries) | |||
Day Counting - OPEN & CLOSED | Excel Worksheet Functions | |||
VBAProject remains open after file is closed | Excel Discussion (Misc queries) | |||
copy worksheet from closed workbook to active workbook using vba | Excel Worksheet Functions |