Greetings
I am attempting to import a simple text file into a workbook to allow it to apply the information to cells and print.
Sub load()
'
' load Macro
'
Sheets("A").Select
Range("Q3:Q53").Select
Selection.ClearContents
ChDir "C:\messages"
Workbooks.OpenText FileName:="C:\messages\55C.txt", Origin:=xlWindows _
Range("A1:A50").Select
Selection.Copy
Windows("MURTCM.XLS").Activate
Range("Q3").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Windows("55C.txt").Activate
ActiveWindow.Close
Sheets("Main Menu").Select
End Sub
Here is a single cell example of what happens;
Once the data (mixed alpha and numerical) is copied to the cells, it changes from(Q3 cell value) 211604013993 in the cell to 2.11604E+11 (Displayed value)
I have my separate cells to copy specific data from each line into its own cell.
this is the formula for cell M7;
=IF(Q3="","",MID(Q3,10,3))
The result in cell M7 should be 933 instead its #VALUE!
I have tried to format the Q3:Q53 cell range to reflect Text and even Custom but it still reverts back.
Any clues?
Cheers
Pb
Bookmarks