View Single Post
 
Old 08-09-2012, 04:45 PM
ubns ubns is offline Windows 7 32bit Office 2010 32bit
Competent Performer
 
Join Date: Apr 2012
Posts: 177
ubns is on a distinguished road
Default

Hi,

I have created a macro for that however, it throws the following error: "File not found".

I guess because the coding line states:

Application.OrganizerCopy Source:= _
"C:\Users\umeshbanga\AppData\Roaming\Microsoft\Tem plates\Normal.dotm", _
Destination:= _
"C:\Users\umeshbanga\Desktop\Cusworth\reportou t-395271-adhoc-test.doc", _
Name:="Custom Breakout", Object:=wdOrganizerObjectStyles

The green line picking up the filepath and filename in which I recorded the macro. Is there any way I can ask word or write the code to implement the replacement of styles in my current word document which is open (that can be different everytime).

Also every time I have go to developer tab -- and then client on document template and then copy and paste the "custom heading styles" from normal.dotm to current open word document. is there a way that every time word opens it automitcally performs this function?

Thanks in advance.
Reply With Quote