Pivottable Macro (output)

mhenk

Well-known Member
Joined
Jun 13, 2005
Messages
591
Hey folks. Right now, I have a pivottable, 7 items in the data field, 8 in the page section, and 1 in the row section.

I would like to create a series of check boxes, one for each of the 7 items in the data field, and a button, that, when pressed, will copy and paste the values from the corresponding columns of the pivottable to a new worksheet, along with the values of the row section. Has anyone ever done something like this before? Anything that can point me in the right direction? ANything I can answer to clear it up?

TIA! :biggrin:
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Code:
If chkEPR.Value = True Then
    Range("A11:A2000").Select
    Selection.Copy
Reup:
    Sheets("Output").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    Application.CutCopyMode = False
    Selection.Clear
    Sheets("FIPS PT").Select
    Range("G11:G2000").Select
    Selection.Copy
    Sheets("Output").Select
    Range("G1").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
End If
Exit Sub

I'm getting an error message at the line Range("G1").Select.

Can someone explain why? Select Method of Range class failed.[/quote]
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top