Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Corba";
Текущий архив: 2006.07.30;
Скачать: [xml.tar.bz2];

Вниз

Добавление програмно нумерацию страниц в Excel   Найти похожие ветки 

 
Дмитрий Лукьянихин   (2005-07-23 05:44) [0]

Привет всем!
Подскажите пожалуйста если кто знает как програмно вставить в Excel нумерацию страниц.

Через макрос пробовал, ничего не получается
пишет мне в Excel вот такую строку

Страница Page] из Pages]


 
AbrosimovA   (2005-07-26 16:27) [1]

WorkSheet1.PageSetup.RightFooter:="Страница &P из &N";//Нумерация страниц справа внизу

Formatting Codes for Headers and Footers
The following special formatting codes can be included as a part of the header and footer properties (LeftHeader, CenterHeader, RightHeader, LeftFooter, CenterFooter, RightFooter).

Format code Description
&L Left aligns the characters that follow.
&C Centers the characters that follow.
&R Right aligns the characters that follow.
&E Turns double-underline printing on or off.
&X Turns superscript printing on or off.
&Y Turns subscript printing on or off.
&B Turns bold printing on or off.
&I Turns italic printing on or off.
&U Turns underline printing on or off.
&S Turns strikethrough printing on or off.
&D Prints the current date.
&T Prints the current time.
&F Prints the name of the document.
&A Prints the name of the workbook tab.
&P Prints the page number.
&P+number Prints the page number plus the specified number.
&P-number Prints the page number minus the specified number.
&& Prints a single ampersand.
& "fontname" Prints the characters that follow in the specified font. Be sure to include the double quotation marks.
&nn Prints the characters that follow in the specified font size. Use a two-digit number to specify a size in points.
&N Prints the total number of pages in the document.


 
Kray ©   (2005-08-01 13:23) [2]

if MsExcel.LanguageSettings.LanguageID[msoLanguageIDUI] = $0419
     then Sht.PageSetup.RightFooter := // русские коды форматирования
       "&П&"Arial"&8Страница &"Arial,полужирный"&С" +
       "&"Arial,обычный" из &"Arial,полужирный"&К"
     else Sht.PageSetup.RightFooter := // английские коды форматирования
       "&R&"Arial"&8Лист &"Arial,bold"&P" +
       "&"Arial,normal" из &"Arial,bold"&N";



Страницы: 1 вся ветка

Форум: "Corba";
Текущий архив: 2006.07.30;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.016 c
3-1148743113
Sword
2006-05-27 19:18
2006.07.30
Fast report и два запроса


15-1151645539
Ega23
2006-06-30 09:32
2006.07.30
С Днём рождения! 30 июня


3-1148457337
vanno
2006-05-24 11:55
2006.07.30
Проблема! Delphi+ADO+MySQL+ODBC Driver 3.51


6-1142829213
Roman81
2006-03-20 07:33
2006.07.30
Кодировка тела почтового сообщения


6-1142871232
andrey_frik
2006-03-20 19:13
2006.07.30
UDP программа





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский