Im trying to get my vba script to copy content from a text file and place it in individual cells. So far im able to pull content from a file, but it places it all one cell only. Is there a way to modify the script below to have it in each cell after every "enter" on the txt file?
Set objFSO = CreateObject("Scripting.FileSystemObject")
objStartFolder = "C:\Users\mohammad.anwar\Desktop\Newfolder4\"
Dim strNow, strDD, strMM, strYYYY, strFulldate
strYYYY = DatePart("yyyy", Now())
strMM = Right("0" & DatePart("m", Now()), 2)
strDD = Right("0" & DatePart("d", Now()), 2)
fulldate = strYYYY & strMM & strDD
ForReading = 1
Set objFolder = objFSO.GetFolder(objStartFolder)
Set colFiles = objFolder.Files
For Each objFile In colFiles
strFileName = objFile.Name
If InStr(strFileName, fulldate) > 0 = True Then
Set file = objFSO.OpenTextFile(objStartFolder + strFileName, 1)
Content = file.ReadAll
Range("A3").Select
ActiveCell.FormulaR1C1 = Content