Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have the following Macro....
Can you help me to eliminate the use of any cells on the import? It comes in all chopped up but I just want it as the text file is that I am bringing from Filename:="G:\Gas_Control\EXCEL\DEPT\Y2K\Weaternet Forecast\cgasdisc.txt Any HELP would be greatly appreciated. Sub Text() ' ' Text Macro ' Macro recorded 12/21/2004 by Kreft Dim destCell As Range Dim totConspWkbk As Workbook With Workbooks("DegreeDays.xls").Worksheets("text") .UsedRange.Clear Set destCell = .Cells(.Rows.Count, "A").End (xlUp).Offset(1, 0) End With Workbooks.OpenText Filename:="G:\Gas_Control\EXCEL\DEPT\Y2K\Weaternet Forecast\cgasdisc.txt", _ Origin:=xlWindows, _ StartRow:=1, DataType:=xlFixedWidth, _ FieldInfo:=Array(Array(0, 1), Array(8, 1), _ Array(30, 1), Array(41, 1), Array(67, 1), Array (78, 1)) Set DegreeDays = ActiveWorkbook ActiveSheet.UsedRange.Copy _ Destination:=destCell DegreeDays.Close savechanges:=False Application.Goto destCell, Scroll:=True ActiveSheet.UsedRange.Columns.AutoFit End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Import comma delimited text | Excel Discussion (Misc queries) | |||
Any way to get around the 240-character line limit on text output? | Excel Discussion (Misc queries) | |||
How can I asign a number value to a text line in Excel? | Charts and Charting in Excel | |||
Adding a text label to a line. | Charts and Charting in Excel | |||
VBA Import of text file & Array parsing of that data | Excel Discussion (Misc queries) |