+ Reply to Thread
Results 1 to 7 of 7

Delete data if comment NOT IN SYSTEM

  1. #1
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,695

    Delete data if comment NOT IN SYSTEM

    Macro addition to do the following

    Delete data c and d , if D has comment NOT IN SYSTEM
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,695

    Re: Delete data if comment NOT IN SYSTEM

    Cl515a35 not in system
    cl515a36 not in system
    cl515a37
    cl515a38
    cl515a39
    cl515a40
    cl515a41 not in system
    cl515a42 not in system
    cl515a43 not in system
    cl515a44 not in system
    cl515a45 not in system

    cl519rd35 not in system
    cl519rd36
    cl519rd37
    cl519rd38 not in system
    cl519rd39 not in system
    cl519rd40 not in system
    cl519rd41 not in system
    cl519rd42 not in system
    cl519rd43 not in system
    cl519rd44 not in system
    cl519rd45 not in system

  3. #3
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,695

    Re: Delete data if comment NOT IN SYSTEM

    If it does correctly it will convert the above data in the file to

    cl515a37
    cl515a38
    cl515a39
    cl515a40

    cl519rd36
    cl519rd37

  4. #4
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,695

    Re: Delete data if comment NOT IN SYSTEM

    How do you push this thread to macros , I posted it here by mistake

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,768

    Re: Delete data if comment NOT IN SYSTEM

    Try ...

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,695

    Re: Delete data if comment NOT IN SYSTEM

    John this will work but can you please combine it into my existing macro that is

    PHP Code: 
    Sub Macro1()
       
    Dim myDic As ObjectlRow As LongAs Long
       Dim myShoe 
    As StringAs Integer
       Dim destRow 
    As Longelem As Variant
      
       Set myDic 
    CreateObject("scripting.dictionary")
       
       
    With ThisWorkbook.ActiveSheet
          lRow 
    = .Cells(Rows.Count1).End(xlUp).Row
          
          
    If lRow 1 Then
             
    For 1 To lRow
                myShoe 
    UCase(Trim(.Cells(r1)))
                
    myShoe Left(myShoeLen(myShoe) - 2)
                If 
    Not myDic.exists(myShoeThen
                   myDic
    .Add Item:=""Key:=myShoe
                End 
    If
             
    Next
                
             
             
    For Each elem In myDic.keys
                
    For 35 To 45
                   destRow 
    destRow 1
                   
    .Cells(destRow3) = elem i
                Next i
                destRow 
    destRow 1
             Next elem
          End 
    If
       
    End With
    End Sub 
    Last edited by makinmomb; 11-01-2015 at 03:55 PM.

  7. #7
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,695

    Re: Delete data if comment NOT IN SYSTEM

    Thanks John Topley , I will run it as separate ,
    It does what I need

+ 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] Vlookup to comment NOT IN SYSTEM
    By makinmomb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2015, 05:10 AM
  2. Delete Comment
    By jpjjmm in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-06-2015, 06:58 PM
  3. Check if cell in range is empty, if it is delete comment else format comment to
    By banaanas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2015, 01:15 AM
  4. Disable Delete Comment, Edit Comment, Show/Hide Comment
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2013, 06:12 AM
  5. [SOLVED] Cant Delete Cells - Not enough system resources
    By pauldaddyadams in forum Excel General
    Replies: 10
    Last Post: 08-14-2012, 03:43 PM
  6. The IF Function-right click on the comment to delete
    By scowlfaceq02 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2006, 12:29 PM
  7. [SOLVED] Code to delete all comment boxes
    By Shawn in forum Excel General
    Replies: 1
    Last Post: 06-02-2005, 11:05 AM

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