Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Word 2003 SearchDocumentsAndShow
pennyg
According to the macro developers guide SearchDocumentsAndShow from iManVBALib should return the Worksite File Open dialog with the results. For me its returning the File Open dialog but defaults to the checked-out documents list and not the search results. I have enhanced dialogs enabled. Any suggestions on returning the correct screen.
Find more posts tagged with
Comments
jny
This is a bug. There is a subroutine, SearchDocuments, that queries for the searchparameters that the end-user has entered into the search form. The code inside this subroutine needs to be updated for 8.x to use a different contextitem, like so:
Change the line of code indicated below:
'Return search params
If Not IsMissing(objSearchParams) Then
Set objSearchParams = objContext.Item("SearchParameters") '--> old contextitem!
End If
'Return search params
If Not IsMissing(objSearchParams) Then
Set objSearchParams = objContext.Item("IManSearchParameters") '--> new contextitem!
End If
Re-compile your code and it should work.
pennyg
Thankyou, that worked beautifully.