If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Open two workbooks simultaneously

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-09-05, 21:56
HFB HFB is offline
Registered User
 
Join Date: Nov 2004
Posts: 13
Open two workbooks simultaneously

How do I use VB to make a file (with a whole bunch of macros in it) open at the same time as opening another file?
Reply With Quote
  #2 (permalink)  
Old 01-10-05, 03:53
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
you dont you have to open them sequentialy

i.e.

Code:
Sub test()
    Dim wkb1 As Workbook
    Dim wkb2 As Workbook
    
    Set wkb1 = Workbooks.Open("c:\myfile1.xls")
    Set wkb2 = Workbooks.Open("c:\myfile2.xls")
    
    
End Sub
HTH
Dave
Reply With Quote
  #3 (permalink)  
Old 02-03-05, 18:24
tigrillomx tigrillomx is offline
Registered User
 
Join Date: Feb 2005
Posts: 2
May be this could help you....



Sub SchedullingAJob()
Application.OnTime TimeValue("17:00:00"), "Procedure1"
Application.OnTime TimeValue("17:00:00"), "Procedure2"
End Sub
Sub Procedure2()
Dim wkb1 As Workbook
Set wkb1 = Workbooks.Open("c:\myfile1.xls")
End Sub

Sub Procedure1()
Dim wkb2 As Workbook
Set wkb2 = Workbooks.Open("c:\myfile2.xls")
End Sub
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On