Hello, I was wondering if VB5/6 is still compatible with the latest version of MS Office, i.e. Office 2007. In other words, I would like to know if it is still possible to reference Word or Excel using the late binding as we could do with Office XP or 2003.

So, do you know if code like the one below (NB: it is only an example and it is incomplete) still works with Office 2007?

VB Code:
  1. MyText = Trim(txtLetter.Text)
  2.     WApp.ActiveWindow.Selection.ParagraphFormat.Alignment = 1
  3.     WApp.ActiveWindow.Selection.InsertAfter MyText
  4.     WApp.ActiveWindow.Selection.InsertParagraphAfter
  5.     WApp.ActiveWindow.Selection.Font.Name = "Arial"
  6.     WApp.ActiveWindow.Selection.Font.Size = 10
  7.     WApp.ActiveWindow.Selection.Font.Bold = True
  8.     WApp.ActiveWindow.Selection.EndOf

Thank you in advance.