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

Excel Question

Status
Not open for further replies.

EC1

Programmer
Jul 22, 2002
25
BE
How can i change the rowheight off all cells?
(VFP7 SP1)

ExcelObject = CREATEOBJECT'Excel.Application')
*
WITH oExcelObject
.Application.Workbooks.Add
.APPLICATION.DisplayAlerts = 0
.Worksheets(3).DELETE
.Worksheets(2).DELETE
.APPLICATION.DisplayAlerts = 1
.Application.Worksheets(1).Activate
ENDWITH
oExcelSheet1 = oExcelObject.Worksheets(1)
oExcelSheet1.name='TITEL'
*
select table
go top
scan
...
endscan
*
oExcelObject.Application.Worksheets(1).Activate
oExcelSheet1.Range("A5").Select
*
oExcelObject.Visible=.T.

Thanks
 
EC1

This works for me:
Code:
o= CREATEOBJECT("excel.application")
ow = o.workbooks.add()
o.Cells.RowHeight = 52
o.visible = .t.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thanks a lot Mike, it's like you are sitting next to me!
 
EC1

Thanks a lot Mike, it's like you are sitting next to me!

You're welcome.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top