Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default User Form Questions

Hello
I use the following code to open a txt file. The file is updated every
minute with ne values. How can I Update this file automatically after the
update?
Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default User Form Questions

Sorry for the misleading subject. Started with one question I was going to
ask and some one came in and I got derailed.
Thanks for all replies!

"Sandy" wrote:

Hello
I use the following code to open a txt file. The file is updated every
minute with ne values. How can I Update this file automatically after the
update?
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default User Form Questions

following code

?

--
Jim Rech
Excel MVP
"Sandy" wrote in message
...
| Hello
| I use the following code to open a txt file. The file is updated every
| minute with ne values. How can I Update this file automatically after the
| update?
| Thanks
|
|


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default User Form Questions

Sorry!


Workbooks.OpenText Filename:="C:\Mypath\myfile.txt", _
Origin:=437, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _
xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True,
Semicolon:=False, _
Comma:=True, Space:=False, Other:=False, FieldInfo:=Array(Array(1,
1), _
Array(2, 1)), TrailingMinusNumbers:=True
ActiveWorkbook.SaveAs Filename:= _
"C:\Mypath\myfile.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWorkbook.Close
Application.DisplayAlerts = True
Applications.ScreenUpdating = True

Opens txt file and saves as xls file


"Jim Rech" wrote:

following code


?

--
Jim Rech
Excel MVP
"Sandy" wrote in message
...
| Hello
| I use the following code to open a txt file. The file is updated every
| minute with ne values. How can I Update this file automatically after the
| update?
| Thanks
|
|



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
How do I fill a cell in a user form from a selection on same form? Terry Tipsy Excel Discussion (Misc queries) 4 June 11th 07 02:59 PM
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 07:57 PM
New user with a couple of questions.... B Craig Excel Discussion (Misc queries) 6 February 11th 05 10:15 PM
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form BruceJ[_2_] Excel Programming 2 October 15th 03 05:28 PM


All times are GMT +1. The time now is 05:25 AM.

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

About Us

"It's about Microsoft Excel"