Results 1 to 2 of 2
  1. #1
    NC_Dataman is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    1

    obj.Editboooks

    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

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    What happens - error message, wrong results, nothing?

    Could you explain more what this code is for? Not familiar with EditBookmark method. Are you editing a Word document?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums