Select sheet question<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o> </o>
Hi All,<o></o>
<o> </o>
I am currently trying to put together a macro that will select multiple sheets and copy and paste values from one column to another. The macro has to work regardless of how many sheets there are in the workbook. <o></o>
<o> </o>
What I was thinking is that I can’t use the index no. since I don’t know how many sheets there are in that workbook. So what I want is to select all sheets but a number of fixed names.<o></o>
<o> </o>
How can I do this? I’ve tried following but I cant get it to work.<o></o>
<o> </o>
<o> </o>
Thanks for your help!<o></o>
<o> </o>
BR <o></o>
Per <o></o>
<o> </o>
Hi All,<o></o>
<o> </o>
I am currently trying to put together a macro that will select multiple sheets and copy and paste values from one column to another. The macro has to work regardless of how many sheets there are in the workbook. <o></o>
<o> </o>
What I was thinking is that I can’t use the index no. since I don’t know how many sheets there are in that workbook. So what I want is to select all sheets but a number of fixed names.<o></o>
<o> </o>
How can I do this? I’ve tried following but I cant get it to work.<o></o>
<o> </o>
Code:
Sub test()<o:p></o:p>
Application.ScreenUpdating = False<o:p></o:p>
For Each ws In ThisWorkbook.Worksheets<o:p></o:p>
Select Case ws.Name<o:p></o:p>
Case "Article and quantities", "summary"<o:p></o:p>
ws.Select<o:p></o:p>
Case Else<o:p></o:p>
ws.Select False<o:p></o:p>
End Select<o:p></o:p>
Next ws<o:p></o:p>
Sheets(1).Activate<o:p></o:p>
Range("A6").Select<o:p></o:p>
Application.ScreenUpdating = True<o:p></o:p>
End Sub
Thanks for your help!<o></o>
<o> </o>
BR <o></o>
Per <o></o>