Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel / VB???:))

Status
Not open for further replies.

q4s72534

MIS
Aug 19, 2003
59
US
I want to open a closed excel book writing by writing a vb script in another excel notebook. How should I do this?

thanks
 
record a macro doing what you want to do, look at the code and change it if needs be
 
Try something like this:

Code:
Sub OpenWorkbook()
Dim wb As String
wb = "Workbook_You_Want_To_Open_With_Path_&_File_Extention"
Application.Workbooks.Open (wb)
End Sub

I hope this helps!



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top