Hi,
Is it possible to code a macro to set a file's properties in Excel 2010? I want the Macro to change the file's "Title" field to the contents of cell A1.
Thanks in advance for any help.
Hi,
Is it possible to code a macro to set a file's properties in Excel 2010? I want the Macro to change the file's "Title" field to the contents of cell A1.
Thanks in advance for any help.
Last edited by fizzy; 06-04-2013 at 11:38 AM.
for instance![]()
Please Login or Register to view this content.
Josie
if at first you don't succeed try doing it the way your wife told you to
Hi,
in general:
and for the title to be the value in cell A1 of worksheet "Sheet1"![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by tehneXus; 06-03-2013 at 04:09 PM. Reason: To slow, sth is weird with the refresh here ...
Please use [CODE]-TAGS
When your problem is solved mark the thread SOLVED
If an answer has helped you please clickto give reputation
Read the FORUM RULES
thank you both for the help, I appreciate it!
Hi,
This worked fine for me: activeworkbook.BuiltinDocumentProperties("Title") = "your title"
However when I try to use a specific cell in my workbook it doesn't seem to do anything (no error is returned, but the title remains blank. Can anyone confirm whether "ThisWorkbook.BuiltinDocumentProperties("title") = Worksheets("Sheet1").Range("A1").Value" is correct? I've tried replacing "ThisWorkbook" with "ActiveWorkbook" instead, but still no luck.
If it makes any difference the text I want to use is merged across A1-D1, I've tried the range as "A1" and also "A1:D1" but no luck.
the code is correct-activeworkbook is the active workbook whereas thisworkbook is the workbook containing the code
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks