Re: Excel Automation by Tom
Tom
Wed Jan 02 08:35:00 CST 2008
Thanks Allan,
I am trying to set the page break like is done using print preview and
manually setting page breaks. The user wants the Excel file to automatically
print after it is created and we want all the columns to fit on one page.
Tom
"Allan" <Allan@discussions.microsoft.com> wrote in message
news:E3057A08-3755-4DCC-B08A-00AD536B328D@microsoft.com...
> hi tom,
>
> the default pagebreak uses the current page setup, e. i. paper size,
> margins, scaling, etc... when adding a vertical page break, it will still
> observe the page-setup, whichever is shorter between your page break and
> the
> paper size...
>
> fyi,
>
> allan
>
>
>
> "Tom Libby" wrote:
>
>> I am automating Excel 2003 and trying to remove the default vertical page
>> break, when I try to delete it I get an error, I can delete a page break
>> that I added though.
>>
>> So since I cannot remove the pagebreak I tried to move it to the column I
>> want it at using VPageBreaks(1).Location this does not work.
>>
>> Could someone explain how to get the page break where I want it.
>>
>> I have searched Google and the examples I have seen all adding pagebreaks
>> and not moving.
>>
>> Every one have a great New Year
>>
>> Thanks
>> Tom
>>
>>
>>
>>
>>