Results 1 to 4 of 4

If Cell contains certain text of pivot table then Show Details on Adjacent Column

Threaded View

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    If Cell contains certain text of pivot table then Show Details on Adjacent Column

    Hi Guys

    I am new to macro's and VBA so bear with me if my explanation isn't great.

    I am trying to write a macro where it searches column D for a particular text eg 'Sales Action' and if found to show the selection from the adjacent cell in Column E. This will open up a new workbook, I have a macro where this was done manually to a cell as an example:

    Sub Tabs()
    '
    ' Tabs Macro
    '
    
    '
        Range("E5").Select
        Selection.ShowDetail = True
        Sheets("Sheet2").Select
        Sheets("Sheet2").Name = "LOR"
        
    End Sub
    Hope that makes sense.

    Kind Regards
    Ross
    Last edited by Cutter; 08-15-2012 at 11:35 AM. Reason: Added code tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1