Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP contolling Excel
Message
 
To
29/04/1999 10:30:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00213446
Message ID:
00213451
Views:
32
>Quick question:
>
>We are accessing Excel from VFP and want to change the orientation of the worksheet to landscape. When we record a macro it shows ".ORIENTATION = .xlLandscape". However, VFP doesn't understand xlLandscape saying "Variable not found". How can we get around this?
>
>Here's a sample of our code to clarify....
>
>oexcel = createobject('excel.application')
>oexcel.workbooks.add
>oexcel.activesheet.pagesetup.printheadings = .f.
>oexcel.activesheet.pagesetup.orientation = xlLandscape
>
>
>Thanks in advance for your help.

Try
oexcel.activesheet.pagesetup.orientation = 2

HTH
Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform