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

Вниз

Excel   Найти похожие ветки 

 
Vikuksa   (2002-09-06 10:15) [0]

Filename: OleVariant; FileFormat: OleVariant;
Password: OleVariant; WriteResPassword: OleVariant; ReadOnlyRecommended: OleVariant; CreateBackup: OleVariant; AccessMode: XlSaveAsAccessMode;
ConflictResolution: OleVariant; AddToMru: OleVariant;
TextCodepage: OleVariant; TextVisualLayout: OleVariant;
lcid: Integer

Нифига не понимаю!


 
McSimm   (2002-09-06 10:20) [1]

я тоже :)


 
Vikuksa   (2002-09-06 10:25) [2]

Это параметры св-ва ExcelApplication1.ActiveWorkbook.SaveAs, не могу с ними разобраться


 
AFrolov   (2002-09-06 10:31) [3]

Почитай справку по VBA - она входит в состав офиса.


 
Vikuksa   (2002-09-06 10:35) [4]

ExcelApplication1.ActiveWorkbook.SaveAs("ddd.xls",EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,0);


 
Игорь Шевченко   (2002-09-06 10:35) [5]

Saves changes to the sheet (Syntax 1) or workbook (Syntax 2) in a different file.

Syntax 1

expression.SaveAs(Filename, FileFormat, Password, WriteResPassword, ReadOnlyRecommended, CreateBackup, AddToMru, TextCodePage, TextVisualLayout)

Syntax 2

expression.SaveAs(Filename, FileFormat, Password, WriteResPassword, ReadOnlyRecommended, CreateBackup, AccessMode, ConflictResolution, AddToMru, TextCodePage, TextVisualLayout)

expression Required. An expression that returns a Chart or Worksheet object (Syntax 1) or a Workbook object (Syntax 2).

Filename Optional Variant. A string that indicates the name of the file to be saved. You can include a full path; if you don’t, Microsoft Excel saves the file in the current folder.

FileFormat Optional Variant. The file format to use when you save the file. For a list of valid choices, see the FileFormat property. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used.

Password Optional Variant. A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file.

WriteResPassword Optional Variant. A string that indicates the write-reservation password for this file. If a file is saved with the password and the password isn’t supplied when the file is opened, the file is opened as read-only.

ReadOnlyRecommended Optional Variant. True to display a message when the file is opened, recommending that the file be opened as read-only.

CreateBackup Optional Variant. True to create a backup file.

AccessMode Optional Variant. The workbook access mode. Can be one of the following XlSaveAsAccessMode constants: xlShared (shared list), xlExclusive (exclusive mode), or xlNoChange (don’t change the access mode). If this argument is omitted, the access mode isn’t changed. This argument is ignored if you save a shared list without changing the file name. To change the access mode, use the ExclusiveAccess method.

ConflictResolution Optional Variant. Specifies the way change conflicts are resolved if the workbook is a shared list. Can be one of the following XlSaveConflictResolution constants: xlUserResolution (display the conflict-resolution dialog box), xlLocalSessionChanges (automatically accept the local user’s changes), or xlOtherSessionChanges (accept other changes instead of the local user’s changes). If this argument is omitted, the conflict-resolution dialog box is displayed.

AddToMru Optional Variant. True to add this workbook to the list of recently used files. The default value is False.

TextCodePage Optional Variant. Not used in U.S. English Microsoft Excel.

TextVisualLayout Optional Variant. Not used in U.S. English Microsoft Excel.


 
Игорь Шевченко   (2002-09-06 11:23) [6]

Попробуй так:

ExcelApplication1.ActiveWorkbook.SaveAs("ddd.xls", { FileName }
EmptyParam, { FileFormat }
EmptyParam, { Password }
EmptyParam, { WriteResPassword }
EmptyParam, { ReadOnlyRecommended }
EmptyParam, { СreateBackup }
1, { AccessMode }
EmptyParam, { ConflictResolution }
EmptyParam, { AddToMru }
EmptyParam, { TextCodepage }
EmptyParam, { TextVisualLayout }
0); { lcid }



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

Форум: "Основная";
Текущий архив: 2002.09.16;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.021 c
1-50785
maxim2
2002-09-03 14:25
2002.09.16
Хочу сделать такое окно как редактор кода в делфи


1-50704
Kent
2002-09-04 16:33
2002.09.16
У меня возникает ошибка при вызове процедуры из DLL внутри потока


14-50916
Мася
2002-08-21 09:11
2002.09.16
Автозагрузка


14-50928
Ketmar
2002-08-21 11:11
2002.09.16
нужен плуг к Миранде...


14-50926
Sock
2002-08-20 19:35
2002.09.16
?





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский