ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to change file properties (https://www.excelbanter.com/excel-programming/413454-macro-change-file-properties.html)

TomH

Macro to change file properties
 
I am trying to create a macro that will insert a block of text into the
"comments" field in the file properties.

in word this is done by the following block
With Dialogs(wdDialogFileSummaryInfo)
.Comments = " some text "
.Execute
End With

how can I do this in excel

Peter T

Macro to change file properties
 
wb.Comments = "Hello"

where wb refers to a workbook, eg ThisWorkbook, ActiveWorkbook,
Workbooks("Book1.xls")

Regards,
Peter T

"TomH" wrote in message
...
I am trying to create a macro that will insert a block of text into the
"comments" field in the file properties.

in word this is done by the following block
With Dialogs(wdDialogFileSummaryInfo)
.Comments = " some text "
.Execute
End With

how can I do this in excel





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com