ProtonLeah,
Sub Test_new_code()
Dim IsToday As String
IsToday = Format(Now, "mmddyy")
filename = "C:/Data/HNBRMT_AGENCY_" & IsToday.txt(Destination:=Range("$A$11"))
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlOverwriteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = False
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 437
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(1, 1, 2, 1, 1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
End Sub
I need the import to start at cell A11
Like I said I am extremely new to macros so I am sure I have a lot of stuff in there that doesnt need to be. I REALLY appreciate your help!!
Bookmarks