MS Office Displays Error Code 0x4004f00d After Installation

I have recently installed a licensed copy of Windows 8 Professional edition. Along with it, I have also installed MS Office 13. Whenever I try to open a document using Office, it shows the error code 0x4004f00d on the screen. Please help.
