INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

PB 11.5 Excel OLE Extension

PB 11.5 Excel OLE Extension

(OP)
Hello,

I am creating an Excel application in PB, dropping some data in it and eventually saving. I am not doing a SaveAs because I need to muck with the font settings of certain cells.

The application starts up (lole_excel.ConnectToNewObject("excel.application")) using the currently installed version of Excel. In my case it is Excel 2007.

My issue is that I need to know what the current version of Excel is on any given machine so I can set the extension of the file to be saved correctly. If I could force the ole application to open as Excel 97 - 2003, that would be fine. If not, since I do not know which version might open on a given machine, I need to find out which version is running.

Would anyone happen to know how to find out that information? I have search for quite a while but I cannot seem to locate any information on the subject and the PB object browser does not offer much in this situation. Also, if anyone knows where there is a list of Excel ole functions, that would be wonderful.

Muchas gracias,

LR

RE: PB 11.5 Excel OLE Extension

(OP)
Hello,

The solution to force the output to Excel 97 was simply to add the enumerated Excel8! variable to the ole saveas method... lole_workbook.saveas(ls_excelpath, excel8!)

LR

RE: PB 11.5 Excel OLE Extension

As far as 'ole functions' are concerned, you can go to Excel and check out the VBA (Visual Basic for Applications) help (I think you need to be in programming mode to be able to get to this help). The methods described there on the various objects can be called via PB - assuming you have the objects instantiated.

Matt

"Nature forges everything on the anvil of time"
www.anvil-of-time.com

RE: PB 11.5 Excel OLE Extension

(OP)
Thanks Matt!

I will check them out.

LR

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close