+ Reply to Thread
Results 1 to 9 of 9

Need VBA Code delete Particular value in Particular table dashboard

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Need VBA Code delete Particular value in Particular table dashboard

    Dear experts

    I have dashboard table in sheet i want delete particular row from 2 set of paritcular table value

    if A:A column find the value JAPAC Recong - FRP Reck need to find under row VTT_Group Business Vertical and need to delete particular row

    if A:A column find the value JAPAC Recong - WEP Count need to find under row VTT_Group Business Vertical and need to delete Particular row.

    find the attachment see expected result sheet but i want result in dashboard sheet

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need VBA Code delete Particular value in Particular table dashboard

    Hi breadwinner,
    This code will do most of what you need but the bottom summary rows must be deleted manually. See if you can work with this.
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need VBA Code delete Particular value in Particular table dashboard

    Brah can u assisgn code without input box? the delete row value exactly VTT_Group Business Vertical only one rest of table end with suffix words leave them.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need VBA Code delete Particular value in Particular table dashboard

    Yo, Hey,

    I thought you might change which rows you wanted to delete so replace my InputBox with some code and do it another way.
    You could pass the "words to look for" in a parameter in the Sub, but I didn't know if you could figure that out.

    Could you be more exact with a description of
    Vertical only one rest of table end with suffix words leave them.
    I'm clueless on what you mean or want...

  5. #5
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need VBA Code delete Particular value in Particular table dashboard

    i want
    Need to Delete : VTT_Group Business Vertical

    Leave those Line: VTT_Group Business Vertical FRP Reck
    Leave those Line: VTT_Group Business Vertical WEP Count.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need VBA Code delete Particular value in Particular table dashboard

    I think this is what it does..

    I guess I still don't understand what you want.

  7. #7
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hello, try this !


    According to the initial post a VBA demonstration as a beginner starter to paste only to the Dashboard worksheet module :

    PHP Code: 
    Sub Demo1()
               
    Dim Rf As RangeF&, V
        With UsedRange
    .Columns(1)
               
    Set Rf = .Find("JAPAC Recong - *", , , 1)
            If 
    Not Rf Is Nothing Then
               F 
    Rf.Row
            
    Do
               
    Application.Match("VTT_Group Business Vertical"Rf.CurrentRegion.Columns(1), 0)
               If 
    IsNumeric(VThen Rf(V).EntireRow.Delete
               Set Rf 
    = .FindNext(Rf)
            
    Loop While Rf.Row F
               Set Rf 
    Nothing
            End 
    If
        
    End With
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 12-03-2022 at 09:54 PM. Reason: typo ...

  8. #8
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need VBA Code delete Particular value in Particular table dashboard

    Brah Thanks for code it works i want add your code as end of loop action with my code can u make it run on normal module

    and how to add if one more scenario

    am i right Set Rf = .Find("JAPAC Recong - *","APAC Recogn -*", , , 1)

    pls help on this mate

  9. #9
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Need VBA Code delete Particular value in Particular table dashboard


    For a normal module just qualify UsedRange with the worksheet reference.

    As the Excel basics Find feature manages only a single criteria like when you manually operates it
    but just obviously replace J with * in the search string …

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] fix code to delete empty table rows
    By sy898661 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-17-2019, 02:26 PM
  2. [SOLVED] VBA Code to Delete All Blank Rows in Table
    By fredfarmer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2019, 10:58 AM
  3. [SOLVED] Help on VBA code to delete a row in more than one table from a single command button
    By grahamlees in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2017, 05:46 AM
  4. [SOLVED] VB Code to Refresh Pivot Table Automatically every 5 mins - For Dashboard
    By MarkyP18 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-06-2015, 04:38 PM
  5. Replies: 0
    Last Post: 09-10-2012, 09:19 AM
  6. vba code to delete specific data from Access table
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-22-2012, 09:41 AM
  7. macro code to delete table data
    By Traymond in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2011, 07:41 PM

Tags for this Thread

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