Updating link message issue

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Updating link message issue

Post by ABabeNChrist »

Hi
I’m using a Microsoft Office 2007 Word Macro-Enabled Document, that has varies UserForms. A problem I seem to be having is when I open document I use.

Code: Select all

Private Sub Document_Open()
Call UpdateAllFields
Call UpdateAllFields
UserForm1.Show
End Sub
To go straight to UserForm1, but I seem to get this message first that refers to links. Is there another way around this?
linked message.JPG
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 79426
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Updating link message issue

Post by HansV »

Does it help if you insert a line

Application.DisplayAlerts = False

at the beginning of the macro, and

Application.DisplayAlerts = True

at the end?
Best wishes,
Hans

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Re: Updating link message issue

Post by ABabeNChrist »

Hi HansV
I tried what you mentioned with no success
I’m using a docm that I use as a main doc. With this main docm I use UserForm’s to navigate to other docm’s, use to enter new data using bookmarks on main docm, print and save reports. The main docm stores the new updated data, so that when I open a report from a UserForm, it then refreshes link. I’m thinking probably as the bookmarks refresh at opening that is why I am receiving this message, I’m really sure. Do you think I should eliminate the UserForm to enter data on and just enter directly on docm.

User avatar
HansV
Administrator
Posts: 79426
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Updating link message issue

Post by HansV »

I don't have Word 2007, but I don't think the userform is the cause of the problem.
Best wishes,
Hans