![]() |
|
#1
|
||||
|
||||
![]()
Here's one way:
Code:
Dim strFile As String strFile = "C:\Users\BK\Desktop\DATA.txt" With Application.FileDialog(msoFileDialogFilePicker) .AllowMultiSelect = False .Show If .SelectedItems.Count = 1 Then strFile = .SelectedItems(1) Else MsgBox "No file selected", vbExclamation Exit Sub End If End If 'IMPORT the file from desktop (DATA.txt) With ActiveSheet.QueryTables.Add(Connection:= _ "TEXT;" & strFile, Destination:=Range("$A$1")) ...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
browser window, ease-of-use, import |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help! Find text in doc file & copy to another file | northstarman | Word | 1 | 11-05-2010 08:15 AM |
![]() |
jabberwocky12 | Word VBA | 2 | 10-22-2010 12:23 PM |
linking a word file and an excell file on a macbook pro | Fleur | Office | 0 | 07-14-2010 08:19 PM |
![]() |
praveen_p | PowerPoint | 1 | 05-06-2009 12:42 PM |
Outlook xp slow when Browsing to attached a file | jmelgar1 | Outlook | 0 | 09-23-2008 01:49 PM |