Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Freeze Frames
Message
 
To
19/03/2007 12:33:20
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01204444
Message ID:
01205615
Views:
16
>Hi
>Maybe i'm just being a bit dumb on this one. I want to leave the user facing a spreadsheet that has freezpanes and autofilter already set. All the rest of the formatting is done elsewhere in the program, and I just have these two elements to sort out.
>
>Alan
>
>
>*- Finish
>oSheet.PageSetup.PrintArea = "$A$1:$S$8800"
>
>oSheet.Range("A8").Select
>oSheet.FreezePanes = "True"
>
>oSheet.Range("A8:S8800").Select
>oSheet.Selection.AutoFilter

So, why do not you follow the Excel Macro?
There are no statements like oSheet.FreezePanes = "True". And FreezePanes you can apply to the Excel ActiveWindow, not sheet object.

And, sure, if there were already freezepanes, and splitted rows or columns that you wish to change, then you should first unfreeze panes, set split rows/coplumns as needed, and set freezepanes to .t. again.

If you have problems translating the VBA code from MAcro to VFP, then show here what you got in VBA code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform