#1   Report Post  
John
 
Posts: n/a
Default break links problem

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 editlinks 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!
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

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.

John wrote:

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 editlinks 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!


--

Dave Peterson
  #3   Report Post  
zipex
 
Posts: n/a
Default

Johnwrote:
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!

Excel is unlikely to break links when any cell or named area contains
a link. Review Named areas which might show what's going on.

  #4   Report Post  
John
 
Posts: n/a
Default

Re-recording it worked...


"Dave Peterson" wrote:

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.

John wrote:

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 editlinks 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!


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want Excel to break links between worksheets in same file eclectic_kx Excel Worksheet Functions 1 May 25th 05 06:38 PM
Page Break Problem ngerm Excel Discussion (Misc queries) 1 April 6th 05 03:00 PM
Links Problem DSE Excel Worksheet Functions 2 March 25th 05 01:53 AM
update links - problem Micha³ S Excel Discussion (Misc queries) 1 February 18th 05 12:58 AM
Why do my links break when I burn multiple Excel files to a CD? akrr-rasmussen Excel Worksheet Functions 1 November 17th 04 02:39 AM


All times are GMT +1. The time now is 09:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"