Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am only familiar with the very basics of writing macros, but I am trying
my hand at writing my first one with hopes of learning more. I want to write a macro that will save me a lot of repetitive work. The first step is to open a text file in order to extract some data that I can manipulate in Excel. When I do it without a macro, the text import wizard opens and I am able to import the data as from a fixed width file. What I have tried in the macro is not working: Public Sub prepareImport() fileToOpen = Application.GetOpenFilename("Text Files (*.txt), *.txt") Open "fileToOpen" For Random As #2 End Sub Does anyone have ideas to help me get started? Thanks in advance, Scott |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CSV text data altered on file open | Excel Discussion (Misc queries) | |||
Open text file in excel that has multiple rows of data | Excel Discussion (Misc queries) | |||
Search/Extract Data w/in Text File | Excel Discussion (Misc queries) | |||
Open delimited text file to excel without changing data in that file | Excel Programming | |||
How to open a zip file and extract its contents in a macro? | Excel Programming |