ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Selecting tabs - tab names given in a list (https://www.excelbanter.com/excel-programming/409702-re-selecting-tabs-tab-names-given-list.html)

Marc T

Selecting tabs - tab names given in a list
 
Just to clarify a little.... the contract numbers in the list correspond
exactly with the tab names.

"Marc T" wrote:

Hi,

I'm struggling to get my head aorund how to do this, so sorry if it's a
little garbled!

I have the following macro to copy the contents of a tab in a large
worksheet to a new one (as values):

Sub DumpToFile()

Dim c As String
c = Worksheets("CONTROLS").Range("C4").Value
Sheets(c).Select
Sheets(c).Copy
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

End Sub


What I have is a list of contract numbers, and I want to put a checkbox next
to each... and have the macro do the routine above for each contract that has
a checkmark beside...

Can this be done?

Many thanks!
Marc



All times are GMT +1. The time now is 07:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com