P
PizzaBoy
Greetings
I am attempting to import a simple text file into a workbook to allo
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, i
changes from(Q3 cell value) 211604013993 in the cell to 2.11604E+1
(Displayed value)
I have my separate cells to copy specific data from each line into it
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 eve
Custom but it still reverts back.
Any clues?
Cheers
P
I am attempting to import a simple text file into a workbook to allo
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, i
changes from(Q3 cell value) 211604013993 in the cell to 2.11604E+1
(Displayed value)
I have my separate cells to copy specific data from each line into it
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 eve
Custom but it still reverts back.
Any clues?
Cheers
P