Add Slicer Items to Naming Tab Results?

drmingle

Board Regular
Joined
Oct 5, 2009
Messages
229
I am using .::Excel 2010::.

How can I use the below information (specifically where "True" exists) to rename my worksheet within my workbook?:
Code:
    With ActiveWorkbook.SlicerCaches("Slicer_COID_NAME")
        .SlicerItems("Thompson").Selected = True
        .SlicerItems("Leonard").Selected = False
        .SlicerItems("Ronald").Selected = False
        .SlicerItems("Ralph").Selected = False
    End With

The code below works well - but produces the output "Pricing 05-21-2013" - I would prefer "Thomps Pricing 05-21-2013":
Code:
Sub CopyPricing()
'
' Objective:To keep pricing in a new iteration
'
Application.ScreenUpdating = False
    Cells.Select
    Selection.Copy
    Range("D3").Select
    Sheets.Add After:=Sheets(Sheets.Count)
    ActiveSheet.Paste
    Range("P2").Select
    Application.CutCopyMode = False
    Selection.Copy
    ActiveSheet.Select
    ActiveSheet.Name = ActiveSheet.Range("P2")
    Range("C1").Select
    ActiveWindow.DisplayGridlines = False
    
    Range("P2").Select
    Selection.Copy
    Range("B4").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    With Selection.Font
        .ThemeColor = xlThemeColorAccent2
        .TintAndShade = -0.499984740745262
    End With
    Selection.Font.Size = 12
    Selection.Font.Bold = True
    
Application.ScreenUpdating = True
End Sub

Any help would be appreciated...
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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