Hi friends,

I am Prem, new to this VBA world. I was writing a program to generate the excel contents to word. it worked fine for me. now i tried to insert a header (a picture) in the word. i am getting a run time error "5941" ,"The requested member of the collection does not exit". When i checked the help option, the message was "Cannot open the file mk:@MSIT store c:\program file\Microsoft office\office 12\1033\WDMAIN11.CHM". But if i don't include that line for the header, it is working good.

doc.sections(1).headers(wdheaderfooterprimary).range.inlineshape.addpicture "c:\documents and setting\pic.bmp". Request you to help to find the solution.

Thank you

Prem