on-internet
← Community

Enter Text From Excel cells to Word and retain the formatting

Stack Overflow ·

I have the fllowing code strMyFormat1 = oWB.Worksheets(strSelectedSheet).Range(strStemLocation).NumberFormat WordApp.Selection.TypeText Format(oWB.Worksheets(strSelectedSheet).Range(strStemLocation), strMyFormat1) & vbCr But it does not retain the format of the Excel Cell e.g. if the Excel Cell is bold I want that to be retained when entering into my word doc I know it works with copy and paste but I dont want to do that

Comments

Sign in or sign up to comment and upvote.

No comments yet.