Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default ActiveWorksheet.Sections(1) does not work

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default ActiveWorksheet.Sections(1) does not work

..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
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
Can I save the activeworksheet only exploringmacro Excel Programming 12 June 17th 09 07:02 AM
can I split a worksheet then have the 2 sections work independent Nik Excel Worksheet Functions 1 December 3rd 08 04:59 PM
Keyboard Shortcut to toggle b/w Find and Replace and ActiveWorksheet? Brooks Excel Discussion (Misc queries) 0 November 25th 08 02:20 PM
ActiveWorksheet vs Worksheets.Item(1) MP[_3_] Excel Programming 4 December 6th 07 06:10 PM
Copy ActiveWorksheet Columns B,C,F to Another Worksheet in Workboo Joe K. Excel Programming 1 October 5th 07 01:38 AM


All times are GMT +1. The time now is 11:47 PM.

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

About Us

"It's about Microsoft Excel"