I am in the miidle of doing some upgrades from Office 2007 to 2010. 1 test PC is XP and 1 is Windows 7. Both are running the 32 bit Office 2010. The follwing code executes correctly on the XP box, but not on the Window 7 one.
Sub basInsText(obj As Object, strBM As String, strIn As Variant)
' This function inserts strIn into to obj at bookmark strBM
' If strIn is EMPTY then the bookmark is deleted
obj.EditBookmark strBM, 0, 0, 0, 1
If IsEmpty(strIn) Or IsNull(strIn) Then
obj.EditClear
Else
obj.Insert strIn
End If
End Sub
As far as I can tell I have the same reference libraries in each. Any ideas?
Thanks