Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PB 11.5 to Excel Starter Version

Status
Not open for further replies.

jbeetz1

Programmer
Nov 28, 2000
60
US
It appears that Microsoft is shipping a starter version of Excel with Windows 7. The OLE call that I currently use Connecttonewobject("Excel.application") does not work. Does anyone know what the call wqould be?
 
so this would not work?

OleObject lole_obj
Integer li_ret

lole_obj = CREATE OLEObject
li_ret = lole_obj.ConnectToNewObject("excel.application")
IF li_ret <> 0 THEN
messagebox('debug', 'no luck!')
return
end if
----------------

Then check your registry (run "cmd", then "regedit.exe") to see which versions of Office you have installed:
Myself I found: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Software\Microsoft\Office\14.0]
wich means I'm having Office 2010 installed (not the starter version).

you might have more luck with:
li_ret = lole_obj.ConnectToNewObject("excel.application.14") // office 2010. Note "14" not "14.0"


regards,
Miguel L.
 
another thing to remember:

after playing around with connectToNewObject you might have 'halfopened' connections with Excel in task administration. "EXCEL.EXE" Make sure you finish them all before trying to connect again:

ScreenShot007.jpg


regards,
Miguel L.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top