Hi
I have a number of excel files containing filled survery, now I would like to have one master document that would have summary result of each.
Thus I imaging to have for each file a row input: name - address - some data...
I would like to open each of the files, and copy the data from selected cells into my master file.
I have figured out that I can create invisible instance of Excel, thus it will not be shown to the user.
How can I copy/paste the data assume from A1 into my sheet?
Sub Combine()
Fpath = "c:\test\"
Fname = Dir(Fpath & "*.xls")
Dim xl As Excel.Application
Set xl = CreateObject("Excel.Application")
xl.Visible = false
Dim w As Workbook
Dim remoteBook As Workbook
Set remoteBook = xl.Workbooks.Open(Fpath & Fname)
xl.Quit
End Sub
I am new in VBA, the access way seems to be quite complicated, is there easier way to get values from those excel files? I realy wish to have simple solution.
What is more annoying are VBA macros in survey files can I disable those on openning so user is not prompted?
thanks!