PC Review


Reply
Thread Tools Rate Thread

ActiveWorksheet.Sections(1) does not work

 
 
Jess
Guest
Posts: n/a
 
      2nd Oct 2009
I have a sub in a workhseet where I have typed in the following:

With ActiveWorksheet.Sections(1) 'excel triggers an error at this line
.Footers(wdHeaderFooterPrimary).PageNumbers.Add
End With

Excel is triggering an error in the first line: Object required.

What is going on? This sample was obtained from the excel help. Microsoft
Excel Object 12 library is enabled.

 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      2nd Oct 2009
..Section is in MS word. For excel

ActiveSheet.PageSetup.LeftFooter = ""

For center and right ; CenterFooter OR RightFooter

If this post helps click Yes
---------------
Jacob Skaria


"Jess" wrote:

> I have a sub in a workhseet where I have typed in the following:
>
> With ActiveWorksheet.Sections(1) 'excel triggers an error at this line
> .Footers(wdHeaderFooterPrimary).PageNumbers.Add
> End With
>
> Excel is triggering an error in the first line: Object required.
>
> What is going on? This sample was obtained from the excel help. Microsoft
> Excel Object 12 library is enabled.
>

 
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
Can I save the activeworksheet only exploringmacro Microsoft Excel Programming 11 17th Jun 2009 07:02 AM
can I split a worksheet then have the 2 sections work independent Nik Microsoft Excel Worksheet Functions 1 3rd Dec 2008 04:59 PM
Keyboard Shortcut to toggle b/w Find and Replace and ActiveWorksheet? Brooks Microsoft Excel Discussion 4 1st Dec 2008 01:00 AM
ActiveWorksheet vs Worksheets.Item(1) MP Microsoft Excel Programming 4 6th Dec 2007 06:10 PM
Copy ActiveWorksheet Columns B,C,F to Another Worksheet in Workboo =?Utf-8?B?Sm9lIEsu?= Microsoft Excel Programming 1 5th Oct 2007 01:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:07 PM.