Serving the Quantitative Finance Community

Search found 14 matches

by futurenets
April 10th, 2003, 8:05 am
Forum: Programming and Software Forum
Topic: Excel VBA - closing windows of other apps
Replies: 4
Views: 189711

Excel VBA - closing windows of other apps

Anyone know how to close down (if open) the child windows of another application from Excel VBA?
by futurenets
January 3rd, 2003, 3:18 pm
Forum: Programming and Software Forum
Topic: DDE
Replies: 8
Views: 190732

DDE

DominicYour method looks great and much cleaner but I can't get it to compile. Also I need to create this as a DLL. I'm using Excel 2002 but don't have the mso9.dll, vbeext1.olb or excel9.olb installed on my machine. Where are they on yours?PW
by futurenets
December 30th, 2002, 4:36 pm
Forum: Programming and Software Forum
Topic: DDE
Replies: 8
Views: 190732

DDE

Does anyone have any C++ code that I could experiment with as a DLL function for simply setting an Excel cell to a given value/text using DDE (not automation)?e.g. Workbook1 Worksheet1 Cell A1 = "YES"
by futurenets
November 6th, 2002, 9:59 am
Forum: Programming and Software Forum
Topic: VB to VC automation
Replies: 2
Views: 189716

VB to VC automation

thanks Jens, your help was invaluable.I was using char * and the following worked fine:USES_CONVERSION;rVal.vt = VT_BSTR;rVal.bstrVal = ::SysAllocString(A2OLE(strptr));VariantCopy(&xlvalue, &rVal);VariantClear(&rVal);RegardsPW
by futurenets
November 5th, 2002, 12:47 pm
Forum: Programming and Software Forum
Topic: VB to VC automation
Replies: 2
Views: 189716

VB to VC automation

<t>I'm using the VB-toVC automation code converter to help me create a dll function that places some text into an excel spreadsheet cell.If I want to send "YES" then it produces: rVal.vt = VT_BSTR;rVal.bstrVal = ::SysAllocString(L"YES");VariantCopy(&xlvalue, &rVal);VariantClear(&rVal);do...
by futurenets
October 23rd, 2002, 12:23 pm
Forum: Programming and Software Forum
Topic: Exporting to Excel
Replies: 21
Views: 195442

Exporting to Excel

Dominic: thanks and please send to optimization@btinternet.comJen: this sounds great but I can't (1) figure how to click through the hierarchy and (2) where to find a VB2VC automation converter (searched MSDN).
by futurenets
October 23rd, 2002, 10:11 am
Forum: Programming and Software Forum
Topic: Exporting to Excel
Replies: 21
Views: 195442

Exporting to Excel

Thanks Dominic please send to: optimization@btinternet.com
by futurenets
October 23rd, 2002, 9:13 am
Forum: Programming and Software Forum
Topic: Exporting to Excel
Replies: 21
Views: 195442

Exporting to Excel

<t>Thanks Jens but I was trying to find something that would allow me to update a given cell on a specific worksheet (using the #import automation method) ...(this code is ok)pXL.CreateInstance(L"Excel.Application.9");pXL->Visible = VARIANT_TRUE;WorkbooksPtr pBooks = pXL->Workbooks;_WorkbookPtr pBoo...
by futurenets
October 23rd, 2002, 7:46 am
Forum: Programming and Software Forum
Topic: Exporting to Excel
Replies: 21
Views: 195442

Exporting to Excel

Dominic, using #import do you know how to reference a specific worksheet other than active worksheet?ThanksPaul
by futurenets
October 22nd, 2002, 12:05 pm
Forum: Programming and Software Forum
Topic: Exporting to Excel
Replies: 21
Views: 195442

Exporting to Excel

<t>Apparently there are 3 ways to automate Excel from VC++ - MFC, #import, and C/C++. Although not yet working, Dominics #import method seems to be the quickest option when using a DLL.However, referencing using #import can be a pain.Does anyone know how to activate e.g. "Sheet2" before updating a s...
by futurenets
October 21st, 2002, 3:16 pm
Forum: Programming and Software Forum
Topic: Exporting to Excel
Replies: 21
Views: 195442

Exporting to Excel

thanks for the code. I'm using VC6 which unfortunately throws up lots of errors when compiling. I'll give it a try and post the corrections if I can sort it out.
by futurenets
October 19th, 2002, 12:58 pm
Forum: Programming and Software Forum
Topic: Exporting to Excel
Replies: 21
Views: 195442

Exporting to Excel

I'm trying to create a DLL function in MS VC++ that when called will simply place a given value in the cell of an Excel spreadsheet. Can anyone provide the code?
by futurenets
October 15th, 2002, 9:32 am
Forum: Programming and Software Forum
Topic: Excel Automation
Replies: 3
Views: 190109

Excel Automation

yes I'm just trying to set the value of a cell in the spreadsheet to a number or text.ThanksPaulWilliams
by futurenets
October 12th, 2002, 3:31 pm
Forum: Programming and Software Forum
Topic: Excel Automation
Replies: 3
Views: 190109

Excel Automation

I'm trying to create a DLL function in MS VC++ that when called will place a value in an Excel spreadsheet. Can anyone provide the code?