Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. If Cells(i, 5).Value <> Range("C5").Value And Not IsEmpty(Cells(i, 1).Value)
  2.  
  3. Cells(i, 1).EntireRow.Hidden = True
  4.  
  5. End If
  6.  
  7. Next i
  8.  
  9. Application.ScreenUpdating = False
  10.  
  11. Dim xSheet As Worksheet
  12.  
  13. Dim eSheet As Worksheet
  14.  
  15. Dim i As Long
  16.  
  17. Set xSheet = ActiveSheet
  18.  
  19. Set eSheet = Worksheets("Engines")
  20.  
  21. Set fSheet = Worksheets("Tanks")
  22.  
  23. If xSheet.Name <> "Definitions" And xSheet.Name <> "fx" And xSheet.Name <> "Needs" Then
  24.  
  25. eSheet.Range("A13:N150").Copy
  26.  
  27. xSheet.Range("B22:N50").PasteSpecial Paste:=xlPasteAll,
  28.  
  29. End If
  30.  
  31. If xSheet.Name <> "Definitions" And xSheet.Name <> "fx" And xSheet.Name <> "Needs" Then
  32.  
  33. fSheet.Range("B8:K42").Copy
  34.  
  35. xSheet.Range("R8:AA42").PasteSpecial Paste:=xlPasteAll,
  36.  
  37. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement