|
-
Nov 9th, 2000, 05:10 AM
#1
Thread Starter
Addicted Member
Hi
I have a Q regarding Excel...here it goes
I need to lock the margins of the workbook so that they can not be changed in the print preview or page setup....
Any Advice / Help would be great
Thanks inadvance,
Regards,
Rocks
-
Nov 9th, 2000, 09:12 AM
#2
Lively Member
Here it is.....
Hi,
You can very well do that by using the following code
xlapp.Worksheets("Sheet1").PageSetup.PrintArea = "$A" & ":$I"
This will set the margin to I cell and remember you can manipulate it with the above code as required by you
Hope this help's you
-
Nov 10th, 2000, 12:33 PM
#3
Thread Starter
Addicted Member
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|