Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Can I edit .iqy file from code?

Is there a way to edit an .iqy file from code before running the
actual Web Query?
For example when downloading stock prices which require a list of
stock symbols how could I edit the iqy file from an Excel macro before
actually using it.
I know that I can edit it manually using Notepad.

Thanks,
Nathan
One step forward and two steps backwards.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can I edit .iqy file from code?

It is just a text file, so you can use low level file io

http://support.microsoft.com/support...eio/fileio.asp
File Access with Visual Basic® for Applications


--
Regards,
Tom Ogilvy

"Nathan Gutman" wrote in message
...
Is there a way to edit an .iqy file from code before running the
actual Web Query?
For example when downloading stock prices which require a list of
stock symbols how could I edit the iqy file from an Excel macro before
actually using it.
I know that I can edit it manually using Notepad.

Thanks,
Nathan
One step forward and two steps backwards.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Can I edit .iqy file from code?

If you're querying Yahoo for stock quotes and want to see a file that
doesn't use .iqy files, then drop me an EMail and I'll send it to you.

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------

Is there a way to edit an .iqy file from code before running the
actual Web Query?
For example when downloading stock prices which require a list of
stock symbols how could I edit the iqy file from an Excel macro before
actually using it.
I know that I can edit it manually using Notepad.

Thanks,
Nathan
One step forward and two steps backwards.


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
edit & configure add button & code [email protected] uk Excel Discussion (Misc queries) 1 November 23rd 08 08:28 PM
edit configure add button and code [email protected] uk Excel Discussion (Misc queries) 2 November 23rd 08 10:26 AM
edit hyperlink code cont from 12/8/04 doug Excel Discussion (Misc queries) 4 December 17th 04 11:51 PM
Code Edit Todd Huttenstine[_2_] Excel Programming 1 December 12th 03 03:34 AM
Emailing Sheets Code Edit Todd Huttenstine[_2_] Excel Programming 2 November 17th 03 07:46 PM


All times are GMT +1. The time now is 12:19 PM.

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"