PC Review


Reply
Thread Tools Rate Thread

Break Links Macro help...

 
 
=?Utf-8?B?bXlkb2dwZWFudXQ=?=
Guest
Posts: n/a
 
      24th Apr 2007
Hello,

I need to write a Macro that will open up several workbooks (not all at
once), break all links and then save the workbook and then close it back
down.

Can anyone help me?

Thanks so much!!
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      24th Apr 2007
Hi mydogpeanut

In this macro you can see how to open the workbooks
http://www.rondebruin.nl/copy4.htm

Then instead of the copy code you can use code from this page to break the links
http://www.rondebruin.nl/values.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"mydogpeanut" <(E-Mail Removed)> wrote in message news:67827096-46DA-4CDE-BF5F-(E-Mail Removed)...
> Hello,
>
> I need to write a Macro that will open up several workbooks (not all at
> once), break all links and then save the workbook and then close it back
> down.
>
> Can anyone help me?
>
> Thanks so much!!

 
Reply With Quote
 
=?Utf-8?B?bXlkb2dwZWFudXQ=?=
Guest
Posts: n/a
 
      24th Apr 2007
Thanks so much. Works great!!! I appreciate it

"Ron de Bruin" wrote:

> Hi mydogpeanut
>
> In this macro you can see how to open the workbooks
> http://www.rondebruin.nl/copy4.htm
>
> Then instead of the copy code you can use code from this page to break the links
> http://www.rondebruin.nl/values.htm
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "mydogpeanut" <(E-Mail Removed)> wrote in message news:67827096-46DA-4CDE-BF5F-(E-Mail Removed)...
> > Hello,
> >
> > I need to write a Macro that will open up several workbooks (not all at
> > once), break all links and then save the workbook and then close it back
> > down.
> >
> > Can anyone help me?
> >
> > Thanks so much!!

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      24th Apr 2007
You are welcome

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"mydogpeanut" <(E-Mail Removed)> wrote in message news:C9D6B42F-DF0E-4156-B071-(E-Mail Removed)...
> Thanks so much. Works great!!! I appreciate it
>
> "Ron de Bruin" wrote:
>
>> Hi mydogpeanut
>>
>> In this macro you can see how to open the workbooks
>> http://www.rondebruin.nl/copy4.htm
>>
>> Then instead of the copy code you can use code from this page to break the links
>> http://www.rondebruin.nl/values.htm
>>
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "mydogpeanut" <(E-Mail Removed)> wrote in message news:67827096-46DA-4CDE-BF5F-(E-Mail Removed)...
>> > Hello,
>> >
>> > I need to write a Macro that will open up several workbooks (not all at
>> > once), break all links and then save the workbook and then close it back
>> > down.
>> >
>> > Can anyone help me?
>> >
>> > Thanks so much!!

>>


 
Reply With Quote
 
matt
Guest
Posts: n/a
 
      25th Apr 2007
On Apr 24, 5:50 am, mydogpeanut
<mydogpea...@discussions.microsoft.com> wrote:
> Hello,
>
> I need to write a Macro that will open up several workbooks (not all at
> once), break all links and then save the workbook and then close it back
> down.
>
> Can anyone help me?
>
> Thanks so much!!


I haven't ever had to do something like this before, but you can
create the directory path, loop through the Excel files within the
directory, open the workbook, break the link, and close and save
changes.

Open the Visual Basic Editor and search "BreakLink Method" (or use the
macro recorder to see how to write the syntax for breaking links), and
search for "Close Method" as well. Both of these should give you what
you are looking for.

ActiveWorkbook.BreakLink Name:=... Type:=...

Workbooks(...).Close SaveChanges:=True

Matt

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Break Links using a macro problem merry_fay Microsoft Excel Misc 0 31st Jul 2008 12:26 PM
Macro to Break Links Before Saving Sheet ryguy7272 Microsoft Excel Programming 4 7th May 2008 08:17 PM
Macro to Break Links to Excel in Document Header =?Utf-8?B?bXRfcGVsaW9u?= Microsoft Word Document Management 1 22nd Feb 2007 09:10 PM
macro to savecopy as and break links =?Utf-8?B?c2Nob29saWU=?= Microsoft Excel Programming 1 22nd May 2006 09:06 AM
Can Not Get Macro to Break with CTRL-BREAK =?Utf-8?B?QnJlYWsgTWU/?= Microsoft Excel Programming 0 8th Sep 2004 03:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:52 AM.