PC Review


Reply
 
 
Mery
Guest
Posts: n/a
 
      6th Apr 2008
Hi,
I have another problem,example the word 'signature' is always in the same
column but it changes row.
I wont to do a break page in the same row when the word 'signature' arise!
End last question is...how can I lock view code,that no one can use it!
Thanks in advance!
Mery
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      6th Apr 2008
This code will insert a pagebreak below the word Signature in column A

Sub Insert_PBreak()
Dim OldVal As String
Dim rng As Range
OldVal = "Signature"
For Each rng In Range("A1:A300") '<< change range
If rng.text = OldVal Then
rng.Offset(1, 0).PageBreak = xlPageBreakManual
End If
Next rng
End Sub

Second problem..................

Open the VBE.

Select your workbook/project and right-click>myworkbook
properties>protection>lock project for viewing. Add a password and OK out.

Note: file must be saved, closed and re-opened before protection takes place.


Gord Dibben MS Excel MVP

On Sun, 6 Apr 2008 09:02:00 -0700, Mery <(E-Mail Removed)> wrote:

>Hi,
>I have another problem,example the word 'signature' is always in the same
>column but it changes row.
>I wont to do a break page in the same row when the word 'signature' arise!
>End last question is...how can I lock view code,that no one can use it!
>Thanks in advance!
>Mery


 
Reply With Quote
 
Mery
Guest
Posts: n/a
 
      7th Apr 2008
Thank you very much,it was very useful!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 Page Break Adjustments causes a page break each cell BKaufman Microsoft Excel Worksheet Functions 1 21st Apr 2010 02:59 PM
extra page break(dotted line) before section page break wormrbook Microsoft Word Document Management 1 16th Jul 2008 11:20 PM
Soft page break following Next Page section break mscertified Microsoft Word Document Management 4 18th Dec 2007 06:39 PM
adding a new page break to an existing page break =?Utf-8?B?RWR3YXJkIExldGVuZHJl?= Microsoft Excel Misc 1 6th Mar 2005 09:29 AM
add page break code in csv file to force break when loading. tim Microsoft Excel Misc 3 1st Apr 2004 01:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 AM.