(Reuters) - Microsoft Corp said on Tuesday it would buy back up to $40 billion as a part of a new share repurchase program and raised its dividend by 8 percent.