Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Break Links Macro help...

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!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Break Links Macro help...

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" wrote in message ...
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!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Break Links Macro help...

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" wrote in message ...
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!!


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Break Links Macro help...

You are welcome

--

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


"mydogpeanut" wrote in message ...
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" wrote in message ...
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!!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Break Links Macro help...

On Apr 24, 5:50 am, mydogpeanut
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
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
Can't get Break Links macro to work... from last week (10/6) Steve Excel Worksheet Functions 0 October 13th 09 07:26 PM
Break Links using a macro problem merry_fay Excel Discussion (Misc queries) 0 July 31st 08 12:26 PM
Break Links Sean Excel Discussion (Misc queries) 1 October 25th 06 03:34 PM
macro to savecopy as and break links schoolie Excel Programming 1 May 22nd 06 09:06 AM
break links peadar Excel Programming 2 March 22nd 05 12:43 AM


All times are GMT +1. The time now is 12:33 PM.

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

About Us

"It's about Microsoft Excel"