HI, I did look through threads to see if I could find this but I cant find something similar enough.
I grabbed this VBA from the web (don't remember the author or I would give them credit) and edited a bit.
I open a new excel sheet and add this VBA code. When I run it, I am prompted for a folder with excel documents and then it combines all the workbooks in that folder with worksheets named "Mi24", into one workbook. It seems to work well except I need it to paste special as right now its pasting the formulas that reference the original worksheets.
I have copied a picture but also the issue seems to be in this area of the macro. Any help you can provide would be great
ActiveSheet.Name = "Mi24"
For x = 1 To 1
LastRow = ActiveSheet.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
With wsDest
ActiveSheet.UsedRange.Copy .Cells(.Rows.Count, "B").End(xlUp).Offset(1, 0)
.Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0).Resize(LastRow) = wkbSource.Name
End With
Next x
MyFile = Dir
wkbSource.Close False
Loop
I grabbed this VBA from the web (don't remember the author or I would give them credit) and edited a bit.
I open a new excel sheet and add this VBA code. When I run it, I am prompted for a folder with excel documents and then it combines all the workbooks in that folder with worksheets named "Mi24", into one workbook. It seems to work well except I need it to paste special as right now its pasting the formulas that reference the original worksheets.
I have copied a picture but also the issue seems to be in this area of the macro. Any help you can provide would be great
ActiveSheet.Name = "Mi24"
For x = 1 To 1
LastRow = ActiveSheet.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
With wsDest
ActiveSheet.UsedRange.Copy .Cells(.Rows.Count, "B").End(xlUp).Offset(1, 0)
.Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0).Resize(LastRow) = wkbSource.Name
End With
Next x
MyFile = Dir
wkbSource.Close False
Loop