LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
btm btm is offline
external usenet poster
 
Posts: 1
Default hpagebreak and vpagebreak


I'm writing a VBA program that extracts data from an AutoCAD drawing and
imports it into excel. The worksheet is then printed onto sheets of
labels. There may be as many as 10 sheets of labels in a worksheet.
There are various printers throughout the facility that can be used to
print the labels.

Instead of trying to write code that formats the worksheets for the
particular active printer (the settings for every printer are a little
different), I decided to insert page breaks.
Unfortunately, the hpagebreak command doesn't seem to do anything. It
appears as though the default Excel settings override the VBA page
break functions.

If I adjust the margins, the page breaks follow the margins, but not
what is specified with the hpagebreak code.

How can I use the hpagebreak function to force a page break in a
specific row?

I need to do this in order to get all of the lines of text to appear
properly on each sheet of labels.


--
btm
------------------------------------------------------------------------
btm's Profile: http://www.excelforum.com/member.php...o&userid=24880
View this thread: http://www.excelforum.com/showthread...hreadid=384229

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPageBreak Problem Bill Below Excel Programming 0 December 19th 04 09:47 PM
Hmmm... Excel OVERRIDES vpagebreak and hpagebreak vb code???? wjoc1[_2_] Excel Programming 1 October 14th 04 12:58 PM
Hmmm... Excel OVERRIDES vpagebreak and hpagebreak vb code???? wjoc1 Excel Programming 1 October 14th 04 03:33 AM
Hpagebreak help needed please Lars Kofod Excel Programming 3 November 28th 03 03:14 PM
HPageBreak billQ Excel Programming 1 July 24th 03 02:18 AM


All times are GMT +1. The time now is 03:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"