LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Web Queries from different sheets

Hi, I wrote a Macro that runs two different web queries. What I need to do is
make them work on different sheets.

Here's part of it:

'Dim strCnn As String
strCnn = "URL;" & Range("B6").Text
With ActiveSheet.QueryTables.Add(Connection:=strCnn,
Destination:=Range("B10"))
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True

I want this one to work on a specific sheet, not the activsheet!

Many thanks,
Alex
 
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
Web queries Heine Excel Worksheet Functions 2 December 7th 06 02:43 PM
I need to run queries against values in other sheets Radu Excel Discussion (Misc queries) 0 November 21st 06 04:49 PM
Web Queries Rob Krugman Excel Programming 1 July 1st 05 05:55 PM
Queries Bean123r Excel Discussion (Misc queries) 0 June 17th 05 12:15 AM
Web Queries Alistair[Data#3] Excel Discussion (Misc queries) 0 May 20th 05 12:39 AM


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

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"