Break links VBA

Joined
Jun 16, 2008
Messages
6
Reaction score
0
Excel - question

I have a file that a macro copies a few sheets out of and breaks link. I want to write some code that will break the link rather than hard code.So far I have

x = ActiveWorkbook.Path
y = ActiveWorkbook.Name
z = x + y


ActiveWorkbook.BreakLink Name:= _
x, Type:=xlExcelLinks

However I can not get it to work, I have also tried X in "".



Only second post and apologies for basic question :)
 

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