Hi all,
I have the following basic macro:
I would like to edit this macro so as when it is run it will be applied on a particular workbook, say "Workbook 1". However "Workbook 1" is not the active workbook. Rather, it is another workbook, which when the macro is run it will be closed.
The macro should remove the duplicates of "Workbook 1", even though "Workbook 1" is closed (not active).
I had posted the original query in another forum but would really appreciate if someone can guide me further. Kindly find original post in the link below:
Apply Macro to a specific Workbook
Can someone help me out
?
Appreciate it a lot
Thanks
I have the following basic macro:
basically it's a simple macro which removes duplicates.
<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit;">
Sub RemoveDuplicates()
Cells.RemoveDuplicates Columns:=Array(1)
End Sub
</code>
I would like to edit this macro so as when it is run it will be applied on a particular workbook, say "Workbook 1". However "Workbook 1" is not the active workbook. Rather, it is another workbook, which when the macro is run it will be closed.
The macro should remove the duplicates of "Workbook 1", even though "Workbook 1" is closed (not active).
I had posted the original query in another forum but would really appreciate if someone can guide me further. Kindly find original post in the link below:
Apply Macro to a specific Workbook
Can someone help me out

Appreciate it a lot
Thanks