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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32::OLE Excel and cell formatting 1

Status
Not open for further replies.

JaySang

Technical User
Jun 26, 2003
43
CA
I'm populating an excel file from a perl script using Win32::OLE, but when I push a number with a decimal point excel auto formats it takes off the .0.

How can I set the cell formatting to allow for one decimal point ?

Thanks
 
Try it:
Code:
$Sheet->Columns("A:A")->{NumberFormat} = "###.#";

dmazzini
GSM System and Telecomm Consultant

 
dmazzini,

Is there place that documents the functionality of Win32::OLE access for Excel. I've learned that it might be in included in the documentation for Visual Basic, but if that's the case, is there an online version of that documentation?

This is the one module that is asked the most about for which I'm unaware of where the documentation lies. So any insight would be most helpful.

- Miller
 
I have not found any web page showing VBA documentation.

However this VBA help is saved in your windows PC in the Office directory. So, you could use it without open VBA Editor.

Check this link:


There, you will see a table showing the Help Files for each Office application.
Code:
VBA for Excel help files:

VbaXl8.hlp Application Version 97 (or 8.0)
Vbaxl9.chm Version 2000 (or 9.0) 
Vbaxl10.chm Version 2002 (or 10)
VBAXL10.chm Version 2003 (or 11)

ActiveState's Perl Dev Kit comes with an application called
VBScript Converter. It is a graphical tool that translates VBScript code to its functional equivalent in Perl. The problem is that it is not free.






dmazzini
GSM System and Telecomm Consultant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top