Results 1 to 5 of 5

Thread: Consolidate multiple workbooks from a folder into one master file VBA

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    3
    Rep Power
    0
    Replace
    Code:
        With Application.FileDialog(4)
            .Title = "Select source file folder"
            .AllowMultiSelect = False
            If .Show = -1 Then
                Fldr = .SelectedItems(1)
            Else
                GoTo Xit
            End If
        End With
    With
    Code:
    Fldr = "C:\SubFolder\MyFolder" 'change to the desired location
    AK

  2. #2
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0
    Thanks for the help.

    I am now stuck again because I had to modifiy the document layout.
    Is there a way to make this code handle the number of columns that should be considered?
    I would like to limit the data to columns "A to S" in other words the 19 first columns.
    I tried to tweak "MaxCols" but it doesn't work.

    Could anyone give me a hint on this please?

    Thanks in advance!

Similar Threads

  1. Replies: 1
    Last Post: 06-07-2013, 10:32 AM
  2. Replies: 2
    Last Post: 05-28-2013, 05:32 PM
  3. Replies: 7
    Last Post: 05-09-2013, 11:16 PM
  4. Replies: 2
    Last Post: 12-19-2012, 08:28 AM

Tags for this Thread

Posting Permissions

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