Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Query Table - weird results

Hi All,
I'm using Excel's querytable object to export data to excel thru a VB
program.
It works most of the time but sometimes i get some weird result while
exporting a recordset to excel.
On some systems though the Refresh Method of Querytable object retains
TRUE without any error, the data
doesn't reflect in the worksheet. I checked my recordset and all the
properties of QueryTable and found them
all right.
The interesting thing is that when i import the same data from Excel's
"Get External Data" Feature i get the
desired output.
Can anybody figure out whether it's problem with excel or something
else.

Thanks in Advance

Sandeep


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Query Table - weird results

I got to know the reason behind this...but not very sure...
Earlier i was creating the excel object dynamically as my project was not
having the reference of Excel library ...
but as soon as i made the object of excel ( application , workbook ,
worksheet ) static it worked!!!!
Any other suggestions???

"sandeep" wrote in message
...
Hi All,
I'm using Excel's querytable object to export data to excel thru a VB
program.
It works most of the time but sometimes i get some weird result while
exporting a recordset to excel.
On some systems though the Refresh Method of Querytable object retains
TRUE without any error, the data
doesn't reflect in the worksheet. I checked my recordset and all the
properties of QueryTable and found them
all right.
The interesting thing is that when i import the same data from Excel's
"Get External Data" Feature i get the
desired output.
Can anybody figure out whether it's problem with excel or something
else.

Thanks in Advance

Sandeep




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
Pivot Table refresh causes the sort to look weird, help please CJ Excel Discussion (Misc queries) 0 September 19th 07 10:30 PM
Weird pivot table errors JohnC Excel Discussion (Misc queries) 0 February 21st 07 02:22 PM
COUNTIF provides weird results [email protected] Excel Worksheet Functions 4 February 10th 07 04:21 PM
weird pivot table problem [email protected] Excel Discussion (Misc queries) 1 August 17th 06 03:04 AM
Web Query Sleep for until results come Sunil_Modi Excel Worksheet Functions 0 November 19th 04 04:29 PM


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