Reply
 
Thread Tools Display Modes
  #1   Report Post  
Laura
 
Posts: n/a
Default Editing links to excel in form-protected word document

I have a Word document that contains tables that are linked Excel worksheets
(Windows XP 2002). Some sections of the document are form protected, but the
sections in which the excel links are found are not (so that they can be
manipulated). Unfortunately, when the doc is locked, if I right-click on the
linked object and go to "Linked Worksheet Object", I can no longer select
"Links..." The practical result of this is that there is no way to change
the source document without re-pasting all of the tables, rather than through
a dialogue box... is there?
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?TGF1cmE=?=,

I have a Word document that contains tables that are linked Excel worksheets
(Windows XP 2002). Some sections of the document are form protected, but the
sections in which the excel links are found are not (so that they can be
manipulated). Unfortunately, when the doc is locked, if I right-click on the
linked object and go to "Linked Worksheet Object", I can no longer select
"Links..." The practical result of this is that there is no way to change
the source document without re-pasting all of the tables, rather than through
a dialogue box... is there?

Assuming these objects are formatted in-line with the text, you should be able
to edit the LINK field code directly by pressing Alt+F9 to toggle it on (and
then off).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

  #3   Report Post  
Laura
 
Posts: n/a
Default

Cindy,
I don't know what you mean. If I select the excel worksheet object or put
my cursor next to it, & hit ALT+F9, nothing happens. Is a dialogue box
supposed to open? Or is there a way to have the "path" appear in text in the
doc so that it can be edited directly? (Why can't I just select "Links..."
like usual?!?!?)
Please help!

Thanks

"Cindy M -WordMVP-" wrote:

Hi ?B?TGF1cmE=?=,

I have a Word document that contains tables that are linked Excel worksheets
(Windows XP 2002). Some sections of the document are form protected, but the
sections in which the excel links are found are not (so that they can be
manipulated). Unfortunately, when the doc is locked, if I right-click on the
linked object and go to "Linked Worksheet Object", I can no longer select
"Links..." The practical result of this is that there is no way to change
the source document without re-pasting all of the tables, rather than through
a dialogue box... is there?

Assuming these objects are formatted in-line with the text, you should be able
to edit the LINK field code directly by pressing Alt+F9 to toggle it on (and
then off).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)


  #4   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default

If nothing happens when you hit Alt+F9 (which toggles the display of fields
from field results to field codes and vice versa), then your link is not a
field, and therefore not a link.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Laura" wrote in message
...
Cindy,
I don't know what you mean. If I select the excel worksheet object or put
my cursor next to it, & hit ALT+F9, nothing happens. Is a dialogue box
supposed to open? Or is there a way to have the "path" appear in text in

the
doc so that it can be edited directly? (Why can't I just select

"Links..."
like usual?!?!?)
Please help!

Thanks

"Cindy M -WordMVP-" wrote:

Hi ?B?TGF1cmE=?=,

I have a Word document that contains tables that are linked Excel

worksheets
(Windows XP 2002). Some sections of the document are form protected,

but the
sections in which the excel links are found are not (so that they can

be
manipulated). Unfortunately, when the doc is locked, if I right-click

on the
linked object and go to "Linked Worksheet Object", I can no longer

select
"Links..." The practical result of this is that there is no way to

change
the source document without re-pasting all of the tables, rather than

through
a dialogue box... is there?

Assuming these objects are formatted in-line with the text, you should

be able
to edit the LINK field code directly by pressing Alt+F9 to toggle it on

(and
then off).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question

or reply
in the newsgroup and not by e-mail :-)



  #5   Report Post  
Laura
 
Posts: n/a
Default

Thanks, Suzanne, but I'm still not sure what you mean. Perhaps it is not a
"link" per se, but it certainly is linked. I put the Excel worksheet object
into the Word doc by doing a "Paste Special" and selecting "Paste Link."
Changes in the Excel file are reflected in the Word document.

I would like other users to be able to change the source file without having
to repaste all of the Excel tables, even when other sections of the Word doc
are locked as a form. Is there a way to do this? Why does that option
disappear when other sections of the doc are form protected? Thanks.


"Suzanne S. Barnhill" wrote:

If nothing happens when you hit Alt+F9 (which toggles the display of fields
from field results to field codes and vice versa), then your link is not a
field, and therefore not a link.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Laura" wrote in message
...
Cindy,
I don't know what you mean. If I select the excel worksheet object or put
my cursor next to it, & hit ALT+F9, nothing happens. Is a dialogue box
supposed to open? Or is there a way to have the "path" appear in text in

the
doc so that it can be edited directly? (Why can't I just select

"Links..."
like usual?!?!?)
Please help!

Thanks

"Cindy M -WordMVP-" wrote:

Hi ?B?TGF1cmE=?=,

I have a Word document that contains tables that are linked Excel

worksheets
(Windows XP 2002). Some sections of the document are form protected,

but the
sections in which the excel links are found are not (so that they can

be
manipulated). Unfortunately, when the doc is locked, if I right-click

on the
linked object and go to "Linked Worksheet Object", I can no longer

select
"Links..." The practical result of this is that there is no way to

change
the source document without re-pasting all of the tables, rather than

through
a dialogue box... is there?

Assuming these objects are formatted in-line with the text, you should

be able
to edit the LINK field code directly by pressing Alt+F9 to toggle it on

(and
then off).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question

or reply
in the newsgroup and not by e-mail :-)






  #6   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default

If the linked object is wrapped, you won't see a field when you toggle field
display; it is displayed only when the linked object is In Line With Text.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Laura" wrote in message
...
Thanks, Suzanne, but I'm still not sure what you mean. Perhaps it is not

a
"link" per se, but it certainly is linked. I put the Excel worksheet

object
into the Word doc by doing a "Paste Special" and selecting "Paste Link."
Changes in the Excel file are reflected in the Word document.

I would like other users to be able to change the source file without

having
to repaste all of the Excel tables, even when other sections of the Word

doc
are locked as a form. Is there a way to do this? Why does that option
disappear when other sections of the doc are form protected? Thanks.


"Suzanne S. Barnhill" wrote:

If nothing happens when you hit Alt+F9 (which toggles the display of

fields
from field results to field codes and vice versa), then your link is not

a
field, and therefore not a link.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

"Laura" wrote in message
...
Cindy,
I don't know what you mean. If I select the excel worksheet object or

put
my cursor next to it, & hit ALT+F9, nothing happens. Is a dialogue

box
supposed to open? Or is there a way to have the "path" appear in text

in
the
doc so that it can be edited directly? (Why can't I just select

"Links..."
like usual?!?!?)
Please help!

Thanks

"Cindy M -WordMVP-" wrote:

Hi ?B?TGF1cmE=?=,

I have a Word document that contains tables that are linked Excel

worksheets
(Windows XP 2002). Some sections of the document are form

protected,
but the
sections in which the excel links are found are not (so that they

can
be
manipulated). Unfortunately, when the doc is locked, if I

right-click
on the
linked object and go to "Linked Worksheet Object", I can no longer

select
"Links..." The practical result of this is that there is no way

to
change
the source document without re-pasting all of the tables, rather

than
through
a dialogue box... is there?

Assuming these objects are formatted in-line with the text, you

should
be able
to edit the LINK field code directly by pressing Alt+F9 to toggle it

on
(and
then off).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow

question
or reply
in the newsgroup and not by e-mail :-)





  #7   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?TGF1cmE=?=,

I don't know what you mean. If I select the excel worksheet object or put
my cursor next to it, & hit ALT+F9, nothing happens. Is a dialogue box
supposed to open? Or is there a way to have the "path" appear in text in the
doc so that it can be edited directly? (Why can't I just select "Links..."
like usual?!?!?)

When I say "inline with the text" I mean that no textwrap formatting has been
applied to the graphical object. You need to get these out of the drawing layer
in order for Edit/Links to "see" them.

Format them "in line with the text" and you should be able to see the links
(either through Edit/links or Alt+F9). Make sure they're in their own paragraph,
select them, then click the Insert Frame button on the FORMS toolbar. Now you
can position them with text wrapping around the frame, and the graphic's link is
still accessible.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

  #8   Report Post  
Laura
 
Posts: n/a
Default

Thanks for the explanation, but unfortunately that is not the issue. The
Edit/Links & ALT+F9 functions both work beautifully when I paste in my Excel
charts, since they are formatted in line with text and there are no text
wrapping issues.

The problem occurs when the Word document is LOCKED. Parts of my document
are form-protected for other users, but since it is meant to be a sort of
template, they need to be able to reference a different spreadsheet file for
the excel charts. I have tried to retain the Edit/Links & ALT+F9
functionality by placing the excel charts in UNPROTECTED SECTIONS of the word
document, but the Edit/Links ability disappears completely when the LOCK is
flipped on. There are lots of charts, so re-pasting each one would not work.
I would also not like to allow users to unlock the document. Is there some
way to get around this? i.e., Change some aspect of the form-protection?
Have the file path appear next to the linked object in hidden text so that it
can be manipulated that way? Super-unprotect the unprotected sections of the
word doc? Set the entire thing up a different way? Please & thank you thank
you thank you.


"Cindy M -WordMVP-" wrote:

Hi ?B?TGF1cmE=?=,

I don't know what you mean. If I select the excel worksheet object or put
my cursor next to it, & hit ALT+F9, nothing happens. Is a dialogue box
supposed to open? Or is there a way to have the "path" appear in text in the
doc so that it can be edited directly? (Why can't I just select "Links..."
like usual?!?!?)

When I say "inline with the text" I mean that no textwrap formatting has been
applied to the graphical object. You need to get these out of the drawing layer
in order for Edit/Links to "see" them.

Format them "in line with the text" and you should be able to see the links
(either through Edit/links or Alt+F9). Make sure they're in their own paragraph,
select them, then click the Insert Frame button on the FORMS toolbar. Now you
can position them with text wrapping around the frame, and the graphic's link is
still accessible.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)


  #9   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?TGF1cmE=?=,

The problem occurs when the Word document is LOCKED. Parts of my document
are form-protected for other users, but since it is meant to be a sort of
template, they need to be able to reference a different spreadsheet file for
the excel charts. I have tried to retain the Edit/Links & ALT+F9
functionality by placing the excel charts in UNPROTECTED SECTIONS of the word
document, but the Edit/Links ability disappears completely when the LOCK is
flipped on.

Right. Sorry for going 'round the ring again; got a bit distracted...

Try it with this macro, assigned to a toolbar button/and or keyboard shortcut

Sub ToggleFieldCodesInForm()
ActiveDocument.ActiveWindow.View.ShowFieldCodes = _
Not ActiveDocument.ActiveWindow.View.ShowFieldCodes
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

  #10   Report Post  
Laura
 
Posts: n/a
Default

That's absolutely fantastic, thank you. This may be shooting the moon, but
is it possible to write the code to open the Edit/Links dialogue box that
disappears when it's locked?

"Cindy M -WordMVP-" wrote:

Hi ?B?TGF1cmE=?=,

The problem occurs when the Word document is LOCKED. Parts of my document
are form-protected for other users, but since it is meant to be a sort of
template, they need to be able to reference a different spreadsheet file for
the excel charts. I have tried to retain the Edit/Links & ALT+F9
functionality by placing the excel charts in UNPROTECTED SECTIONS of the word
document, but the Edit/Links ability disappears completely when the LOCK is
flipped on.

Right. Sorry for going 'round the ring again; got a bit distracted...

Try it with this macro, assigned to a toolbar button/and or keyboard shortcut

Sub ToggleFieldCodesInForm()
ActiveDocument.ActiveWindow.View.ShowFieldCodes = _
Not ActiveDocument.ActiveWindow.View.ShowFieldCodes
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)




  #11   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?TGF1cmE=?=,

This may be shooting the moon, but
is it possible to write the code to open the Edit/Links dialogue box that
disappears when it's locked?

Only by unprotecting the entire document. The dialog box is locked out
completely as long as the document is protected. The macro could do that;
question is, do you want to take the chance that the macro might fail and
leave the document unlocked?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

  #12   Report Post  
Laura
 
Posts: n/a
Default

I'm ok with that. If it does happen, it can be locked again by clicking on
the padlock (Forms toolbar), and just won't be password protected, right?
I'd just love for it to be as user friendly as possible, and the dialogue box
would help immensely. (I would just need to know -- would it clear all the
fields as it does when you unprotect the doc now? Best if not, but I'd take
it regardless.)

Thanks for all your help on this!

"Cindy M -WordMVP-" wrote:

Hi ?B?TGF1cmE=?=,

This may be shooting the moon, but
is it possible to write the code to open the Edit/Links dialogue box that
disappears when it's locked?

Only by unprotecting the entire document. The dialog box is locked out
completely as long as the document is protected. The macro could do that;
question is, do you want to take the chance that the macro might fail and
leave the document unlocked?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


  #13   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?TGF1cmE=?=,

I'm ok with that. If it does happen, it can be locked again by clicking on
the padlock (Forms toolbar), and just won't be password protected, right?
I'd just love for it to be as user friendly as possible, and the dialogue box
would help immensely. (I would just need to know -- would it clear all the
fields as it does when you unprotect the doc now? Best if not, but I'd take
it regardless.)

OK, here you go. And when it reprotects it does retain the data in fields:

Sub ShowEditLinks()
Dim doc As Word.Document

Set doc = ActiveDocument
If doc.ProtectionType wdNoProtection Then
doc.Unprotect
End If
Dialogs(wdDialogEditLinks).Show
doc.Protect wdAllowOnlyFormFields, True
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

  #14   Report Post  
Laura
 
Posts: n/a
Default

THANK YOU!!!

"Cindy M -WordMVP-" wrote:

Hi ?B?TGF1cmE=?=,

I'm ok with that. If it does happen, it can be locked again by clicking on
the padlock (Forms toolbar), and just won't be password protected, right?
I'd just love for it to be as user friendly as possible, and the dialogue box
would help immensely. (I would just need to know -- would it clear all the
fields as it does when you unprotect the doc now? Best if not, but I'd take
it regardless.)

OK, here you go. And when it reprotects it does retain the data in fields:

Sub ShowEditLinks()
Dim doc As Word.Document

Set doc = ActiveDocument
If doc.ProtectionType wdNoProtection Then
doc.Unprotect
End If
Dialogs(wdDialogEditLinks).Show
doc.Protect wdAllowOnlyFormFields, True
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I divide a page into three sections? Bonnie Microsoft Word Help 3 May 8th 23 02:47 AM
How to use ink on a protected Word 2003 document (forms - signatu. Tommy Vinson Microsoft Word Help 5 March 20th 06 09:16 PM
I can't open the embedded excel sheet in one of my word document . Prashant Microsoft Word Help 0 December 2nd 04 11:15 PM
Insert Excel Worksheets into Word Document Barb Reinhardt Microsoft Word Help 1 December 1st 04 06:30 PM
How do I convert a cd in word perfect to microsoft word greylady Microsoft Word Help 1 November 23rd 04 07:03 PM


All times are GMT +1. The time now is 02:26 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"