Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / August 2007

Tip: Looking for answers? Try searching our database.

HPageBreak and crazy error (Excel 97)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
adarus@yahoo.com - 31 Aug 2007 22:32 GMT
I have the following line of code that produces something I have never
seen before:

   lngHorizBreaks = Worksheets(1).HPageBreaks.Count

When this code executes, it changes the column widths of in the
spreadsheet (I am not kidding, it really does change the column widths
of my columns that have data).

The following line of code does not work as it should:
lngPageBreakRow = ActiveSheet.HPageBreaks.Item(1).Location.Row - 1

The above code worked, but recently a machine was upgarded with SAPGUI
7.10 and then things started going crazy.

I need a workaround to determining the page break row and it looks
like anything associated with HPageBreak is going to cause problems.

I would be interested in any help that someone could provide since the
code works in most machines, but the new changes are causing problems
as stated above.

Regards,

Don
Ron de Bruin - 31 Aug 2007 22:58 GMT
Hi Don

Maybe you have this problem
http://support.microsoft.com/default.aspx?scid=kb;en-us;210663

My workaround is this
http://www.rondebruin.nl/hpagebreaks.htm

Signature

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

>I have the following line of code that produces something I have never
> seen before:
[quoted text clipped - 21 lines]
>
> Don
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.