• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

macro not working due external content disabled

vamshikrishna

New Member
Code:
On Error GoTo Terminate
    Dim M As Integer

    Sheets("POSITIVE").Select
    M = Cells(Rows.Count, "A").End(xlUp).Row
    If IsEmpty(Range("E" & M + 1)) = True Then
     Workbooks(ThisWorkbook.Worksheets("Sheet1").Range("B2").Value).Activate
      
    ''Column E instance to Column E positive tab
    Sheets("SCRUBBED").Select
    Range("E1").Select
    ActiveCell.Offset(1, 0).Select
    Do Until ActiveCell.EntireRow.Hidden = False
    ActiveCell.Offset(1, 0).Select
    Loop
    Range(Selection, Selection.End(xlDown)).Select
    Selection.Copy
    Sheets("POSITIVE").Select
    If ActiveSheet.FilterMode Then
        ActiveSheet.ShowAllData
    End If
    LR = Cells(Rows.Count, "A").End(xlUp).Row
    Range("E" & LR).Select
    ActiveCell.Offset(1, 0).Select
    Selection.PasteSpecial paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
>> CODE -tags <<
 
Last edited by a moderator:
Back
Top