New topic: 

Loading excel application fails

<http://forums.realsoftware.com/viewtopic.php?t=43964>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        njarboe          Post subject: Loading excel application 
failsPosted: Fri May 11, 2012 11:56 am                         
Joined: Fri May 11, 2012 11:42 am
Posts: 1                Hello,

I am trying to get an excel spreadsheet to load on a Mac, but I am getting an 
error. Here is the code:
Dim xl As OLEObject
Dim wkBook as ExcelWorkbook

xl = new OLEObject("Excel.Application",true)
wkBook = 
xl.Workbooks.Open("pintpal:Users:nickjarboe:Dropbox:coding:realStudio:testExcel.xls")


On the last line I get an "OLEException".

Any help would be appreciated.   
                             Top                markwalsh          Post 
subject: Re: Loading excel application failsPosted: Fri May 11, 2012 12:00 pm   
                      
Joined: Wed May 20, 2009 4:43 pm
Posts: 789                njarboe wrote:Hello,

I am trying to get an excel spreadsheet to load on a Mac, but I am getting an 
error. Here is the code:
Dim xl As OLEObject
Dim wkBook as ExcelWorkbook

xl = new OLEObject("Excel.Application",true)
wkBook = 
xl.Workbooks.Open("pintpal:Users:nickjarboe:Dropbox:coding:realStudio:testExcel.xls")


On the last line I get an "OLEException".

Any help would be appreciated.
>From the LR:
Quote:Used to automate Microsoft Excel. Supported on the Windows platform only. 
    
_________________
RB 2009r4 Windows XP  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to