easyquestions
New Member
- Joined
- Sep 2, 2011
- Messages
- 2
I'm trying to find VBA codes that will copy-paste values a whole workbook (w/many many tabs) but skip charts. The codes below are the one that I'm using to copy-paste special values for a whole workbook. But I have a few charts included this time, and wouldn't work unless I manually change the sheet count#. Please help!
Sub MakeDeliverable()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o> </o>
Application.ScreenUpdating = False<o></o>
<o> </o>
Dim i<o></o>
For i = 1 To Sheets.Count<o></o>
<o> </o>
Sheets(i).Visible = True<o></o>
Sheets(i).Select<o></o>
With Selection<o></o>
.Copy<o></o>
.PasteSpecial Paste:=xlPasteValues<o></o>
End With<o></o>
Range("A1").Select<o></o>
<o> </o>
Next i<o></o>
<o> </o>
Sheets(1).Select<o></o>
<o> </o>
Application.ScreenUpdating = True<o></o>
<o> </o>
End Sub<o></o>
Sub MakeDeliverable()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o> </o>
Application.ScreenUpdating = False<o></o>
<o> </o>
Dim i<o></o>
For i = 1 To Sheets.Count<o></o>
<o> </o>
Sheets(i).Visible = True<o></o>
Sheets(i).Select<o></o>
With Selection<o></o>
.Copy<o></o>
.PasteSpecial Paste:=xlPasteValues<o></o>
End With<o></o>
Range("A1").Select<o></o>
<o> </o>
Next i<o></o>
<o> </o>
Sheets(1).Select<o></o>
<o> </o>
Application.ScreenUpdating = True<o></o>
<o> </o>
End Sub<o></o>