Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Overwriting/Overlapping web query problem

I have a web query that overlaps another query. When the second we
query is added to the sheet through vba, it is suppose to overwrite th
data of the first query in which it overlaps. It does in fact overwrit
the data fine, however, it doesnt seem to overwrite the quer
defintion. Therefore, strangely, the overlapped data contains the dat
of the second query, but the query definition of the first query (whic
is problematic, since I will need to refresh these queries at certai
times).

The code first inserts some lines, and then runs this bit to add th
new query table: (both query tables run this code)

With QueryTables.Add(Connection:=ConnectURL, Destination:=[B4])
.PostText = postStr
.BackgroundQuery = True
.PreserveFormatting = False
.AdjustColumnWidth = False
.RefreshStyle = xlOverwriteCells
.Name = strYesterday
.WebSelectionType = xlSpecifiedTables
.WebTables = "4"
.Refresh BackgroundQuery:=False
.SaveData = True
End With

So, i was just wondering if i was missing something.

Also, is there a way to refresh only the data, of a truncated query
that remains? For example, if I delete a row from a query, can
refresh the remaining query without having that row reappear on th
refresh

--
Message posted from http://www.ExcelForum.com

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
Problem with pivot tables overlapping with new data jjonessnl Excel Discussion (Misc queries) 1 October 6th 09 03:00 PM
Odd overlapping problem with standard column chart MJW[_2_] Charts and Charting in Excel 4 August 15th 07 09:09 PM
Ms Query problem Janie Excel Discussion (Misc queries) 2 September 19th 06 07:25 PM
Problem with MS Query - can't edit query jarems Excel Discussion (Misc queries) 2 December 12th 05 09:42 AM
Overlapping combinations problem Dizzy[_3_] Excel Programming 2 February 2nd 04 09:26 AM


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