Macro to change file properties

T

TomH

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
 
P

Peter T

wb.Comments = "Hello"

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

Regards,
Peter T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top