break links problem

G

Guest

I have a simple macro that selects three tabs in the active workbook, and
then makes a copy of them to a new workbook. The Macro also contains a line
to break the link between the old workbook. However, since taking this
spreadsheet over from a coworker, I manually have to go to edit>links and
then break the link. Any ideas why the macro won't do it?

ActiveWorkbook.BreakLink Name:= _
"\\Porfs01\snt\Taxable\Research & Inventory\Inventory\SNW INV
PLAIN.xls", Type _
:=xlExcelLinks

Thanks for the help!
 
D

Dave Peterson

Since it works when you do it manually, I'd record a macro when you do it once
more.

Then you could compare the recorded macro with what your code does.
 
Z

zipex

Johnwrote
Any ideas why the macro won't do it
ActiveWorkbook.BreakLink Name:=
"\\Porfs01\snt\Taxable\Research Inventory\Inventory\SNW INV
PLAIN.xls", Type _
:=xlExcelLink

Thanks for the help
Excel is unlikely to break links when any cell or named area contain
a link. Review Named areas which might show what's going on
 
G

Guest

Re-recording it worked...


Dave Peterson said:
Since it works when you do it manually, I'd record a macro when you do it once
more.

Then you could compare the recorded macro with what your code does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top