Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tom tom is offline
external usenet poster
 
Posts: 570
Default Open txt file using vba code


In MS-excel2003, when we click on a button we have to open a txt file which
we already assigned.Please suggest vba code for this.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Open txt file using vba code


If you're opening a text file, you'll probably want to parse each field
according to rules that only you know.

I'd suggest that you record a macro when you do it manually and you'll have code
that works ok.

tom wrote:

In MS-excel2003, when we click on a button we have to open a txt file which
we already assigned.Please suggest vba code for this.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Open txt file using vba code


Hi Tom,

You should be able to record a macro to open the file. If you need further
help to modify the recorded code to make it more dynamic to say match a
filename in an existing worksheet or something then post the code you
recorded and describe how you want to make the code more dynamic.

--
Regards,

OssieMac


"tom" wrote:

In MS-excel2003, when we click on a button we have to open a txt file which
we already assigned.Please suggest vba code for this.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
open file with code Steve Excel Discussion (Misc queries) 1 April 24th 09 08:21 PM
Open a file from vba code Ambarish Excel Programming 1 November 20th 07 12:36 PM
Code to Open Excel File Please Help Cole Excel Discussion (Misc queries) 2 July 10th 06 09:04 PM
How to open a zip file from the code? ana Excel Programming 1 April 26th 04 02:49 PM
VBA code to open file? pgoodale[_2_] Excel Programming 4 December 30th 03 01:41 PM


All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"