Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Edit Query Window

I was wondering if there is a way to open the web query window (Data -
Import External Data - New Web Query or Edit Query if one exists) through
VBA?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Edit Query Window

Hello,

Aside from using SendKeys, I don't think there is way to do this
programmatically.

Colby
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Edit Query Window

Use sendkeys and go throught the menus? That would be alot of sendkeys, or
can I use a sendkey on a specific cell that contains the query?

"Colby Africa" wrote:

Hello,

Aside from using SendKeys, I don't think there is way to do this
programmatically.

Colby

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Edit Query Window

Describe what the end results should be. You can programmatically
create web queries fairly easily. Do you want to force the user to do
this manually?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Edit Query Window

If you want to change the query, do it first with a variable and have your
macro do the fetch

With Sheets(2).QueryTables.Add(Connection:="URL;" _
& "http://finance.yahoo.com/d/quotes.csv?s=" & _
mysmbol & "&f=snd1t1l1ohgpvqyd&e=.csv", _

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"LightShow" wrote in message
...
I was wondering if there is a way to open the web query window (Data -
Import External Data - New Web Query or Edit Query if one exists) through
VBA?




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Edit Query Window

Here is my problem. I have a series of webqueries that are created through
vba, but the URL requires the user to login through a different page first,
which I cannot pass the username and password through the url. So I have a
script to see if they are login or or not (using webquery) if not, I wanted
to open the webquery to have them login. I used the following sendkeys which
seemed to work.

Application.SendKeys ("%DDE")


"Colby Africa" wrote:

Describe what the end results should be. You can programmatically
create web queries fairly easily. Do you want to force the user to do
this manually?


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Edit Query Window

I get it. Problem solved?
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 links window malcomio Excel Discussion (Misc queries) 2 May 23rd 07 04:32 PM
why does edit query button not open query needlemaker Excel Discussion (Misc queries) 0 June 29th 06 03:18 PM
MS Query - unable to edit query Excel GuRu Excel Discussion (Misc queries) 9 April 12th 06 04:29 PM
Edit Hyperlink Window Ron Excel Discussion (Misc queries) 0 July 12th 05 10:48 AM
Edit Query from Excel will not open query in MSQuery Michelle Excel Programming 0 February 21st 05 03:59 PM


All times are GMT +1. The time now is 01:29 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"