Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
copying worksheet to another workbook with a macro more than once
I want to copy a worksheet to another workbook and break the link on the
orginal worksheet. I recorded a macro. but I can only do it once. How can I did it several times? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
copying worksheet to another workbook with a macro more than once
Try something like:
Sub Macro1() Windows("Book1").Activate Sheets("rt").Copy Befo=Workbooks("Book2").Sheets(1) Windows("Book1").Activate Sheets("rt").Copy Befo=Workbooks("Book2").Sheets(1) Windows("Book1").Activate Sheets("rt").Copy Befo=Workbooks("Book2").Sheets(1) Windows("Book1").Activate Sheets("rt").Copy Befo=Workbooks("Book2").Sheets(1) End Sub -- Gary''s Student - gsnu200755 "RT" wrote: I want to copy a worksheet to another workbook and break the link on the orginal worksheet. I recorded a macro. but I can only do it once. How can I did it several times? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
copying worksheet to another workbook with a macro more than once
Hi RF,
I used this recently, which I found in another posting: With ActiveWorkbook Links = .LinkSources(xlExcelLinks) If Not IsEmpty(Links) Then For i = 1 To UBound(Links) .BreakLink Links(i), xlLinkTypeExcelLinks Next i End If End With "RT" wrote: I want to copy a worksheet to another workbook and break the link on the orginal worksheet. I recorded a macro. but I can only do it once. How can I did it several times? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copying worksheet to another workbook | Excel Worksheet Functions | |||
Macro for Copying Worksheet to New Workbook | Excel Discussion (Misc queries) | |||
Copying a worksheet to another workbook | Excel Discussion (Misc queries) | |||
Copying A Worksheet From Each Open Workbook to an new Workbook | Excel Worksheet Functions | |||
Copying worksheet from workbook to another | Excel Worksheet Functions |