Break Links Macro help...

M

mydogpeanut

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

matt

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
 

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

Top