Results 1 to 10 of 10

Thread: quickie - how to open multiple spreadsheets?[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    103

    Resolved quickie - how to open multiple spreadsheets?[RESOLVED]

    I'm just looking for a line or two of code that opens all the .xls files in a directory (input as String by user).

    i.e. a working version of this:
    VB Code:
    1. Dim SourcePath As String
    2.     Dim fName As String
    3.    
    4.     SourcePath = InputBox("Enter Path to File(s)")
    5.    
    6.     ChDir SourcePath
    7.        
    8.     Workbooks.Open Filename:=*.*

    I assume it needs some sort of loop in the form of for all file in sourcepath, workbook.open filename:= file
    Last edited by pickarooney; Apr 21st, 2005 at 09:22 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width