View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
isabelle isabelle is offline
external usenet poster
 
Posts: 587
Default Open workbook(s) using VBA

hi Jeyakumar,

Sub test()
Dim Wk As Workbook, FD As FileDialog

Set FD = Application.FileDialog(msoFileDialogFilePicker)
FD.AllowMultiSelect = True
FD.Filters.Clear
FD.Filters.Add Description:="Excel Files", Extensions:="*.xls;*.xlsx"
FD.Show

If FD.SelectedItems.Count 0 Then
For i = 1 To FD.SelectedItems.Count
Application.Workbooks.Open FD.SelectedItems(i)
Next
End If

Set FD = Nothing
End Sub


--
isabelle


Le 2012-09-21 10:48, TIMOTHY a écrit :
Dear All

can you help me with the code of opening one or multiple workbook which are used daily

Thanks & Regards
Jeyakumar