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

I am using the web query:
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://webpage.com?" & courseCode _
, Destination:=Range("A9"))
And this picks up a 4 row by 5 column table.
The problem is that when it pastes this into the range A9 it inserts 5
colums there. I don't want it to insert columns but rather just to
paste into the cells that are already there. Does anyone know the code
for this?
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default web query format

Here are a couple of ideas you can modify to suit your needs.
'at the start
Sheets("Data").Rows("2:300").Delete
=====
'at the end
For Each Name In Sheets("Data").Names
Name.Delete
Next Name
========
"Bill C" wrote in message
m...
I am using the web query:
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://webpage.com?" & courseCode _
, Destination:=Range("A9"))
And this picks up a 4 row by 5 column table.
The problem is that when it pastes this into the range A9 it inserts 5
colums there. I don't want it to insert columns but rather just to
paste into the cells that are already there. Does anyone know the code
for this?
Thank you.



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
MS Query and date format IgorM[_2_] Excel Discussion (Misc queries) 3 February 24th 10 05:42 PM
Maintaining Cell Format in Query Mike Excel Discussion (Misc queries) 2 August 22nd 08 10:16 AM
Conditional Format Rank query Rich Excel Discussion (Misc queries) 3 June 12th 06 07:43 PM
MS Query Date Format scos00 Excel Discussion (Misc queries) 0 October 21st 05 04:58 PM
Query Data Format Dan Sweetwood Excel Discussion (Misc queries) 2 August 25th 05 07:36 PM


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