Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using COM to Create an Excel Spreadsheet from ColdFusion

I am using COM via a ColdFusion site to create an excel file with multiple
worksheets. Each worksheet needs to contain a different web query. I was able
to successfully create the file and the worksheets, but I am having trouble
setting cell values and creating the web queries. Here is the code I used...

The following block of code is supposed to create a new worksheet, name it,
and add a web query to a url...

<cfscript
// Add a new worksheet (this will contain our data)
objWorkSheet = objWorkSheets.Add();
objWorkSheet.Name = "#profileKey#";
objQueryTables = objWorksheet.QueryTables;

objQueryTable = objQueryTables.Add("#url#", objRange);
objQueryTable.Refresh();
</cfscript

The line to add the new query table is failing.

After the new worksheets containing the web queries are created, a final
worksheet is added, which will contain a summary of the other sheets. I am
having trouble setting the value of a cell.

myRange = objExcel.Range("A1:A1");
myRange.value = "My Value";

I would really appreciate any help I can get on this topic.

Thanks!
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
how do i create an excel spreadsheet for NPV IRR & MIRR? Frustrated Beginning Accountant Excel Discussion (Misc queries) 0 June 14th 08 12:30 AM
How do I create a spreadsheet in Excel? 1HotMomma New Users to Excel 2 May 12th 08 02:30 PM
How to create a Glossary into Excel spreadsheet? Outlook user Excel Discussion (Misc queries) 5 October 26th 07 11:33 PM
How do I create a certain equation in Excel spreadsheet? tomscobie Excel Worksheet Functions 1 April 27th 06 10:36 PM
Sending Excel Data to a Coldfusion Form bcd Excel Programming 0 August 29th 04 04:31 PM


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