Macro Code for update fields upon Excel document open---MS Excel - Microsoft Community


hi team,
day!

can please share macro code update fields upon excel document open. used support documentum properties synchronization office properties.
here, updating fields in header & footer section in "ms excel worksheet 8.0-2003(windows)".

below word code working expected. 
sub autoopen()
    dim astory range
    dim afield field
        each astory in activedocument.storyranges
        each afield in astory.fields
            afield.update
        next afield
    next astory
        activedocument.saved = true
end sub

similarly, please share excel macro code.



Office / Excel / Microsoft Office Programming / Older versions



Comments

Popular posts from this blog

Getting ErrorCode: 120018 when trying to access Microsoft account - Microsoft Community

The message was sent to a distribution list ‎(DL)‎ - Microsoft Community

Activation Error 0x8004FE93 - Microsoft Community