hello all,

first of all i am new to vba so thanks for any help in advance,

now what i am trying to do is set up a process that will automatically import data into a worksheet, the data is stored in word docs and each day of the year has a word doc and there will be 12 spreadsheets each with a tab for each day of the month.

eg: C:\Documents and Settings\Desktop\Size Data\1. January\Data\01012008 Size.doc

while I can get it work by using the record macro function i can only get it to work 1 day at a time and i was wondering if there is a way of avoiding copying the macro 365 times?

thanks heaps!

Sub Macro3()
'

'
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Documents and Settings\Desktop\Size Data\1. January\Data\01012008 Size.doc" _
, Destination:=Range("A1"))
.Name = "01012008 Size_6"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 850
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = True
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = True
.TextFileColumnDataTypes = Array(1, 9, 9, 9, 1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
End Sub