SHARE
TWEET

Untitled

a guest Jun 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. With Worksheets("ML")
  2. .Cells(.Rows.Count, "B").End(xlUp).Offset(1, 0) = ComboBox1.Value
  3. .Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0) = ComboBox2.Value
  4. .Cells(Rows.Count, "B").End(xlUp).Offset(-1, 1).Resize(, 3).AutoFill
  5. .Cells(Rows.Count, "B").End(xlUp).Offset(-1, 1).Resize(, 3).Resize(2)
  6.  
  7. With .Cells(Rows.Count, "B").End(xlUp).Offset(-1, 1).Resize(, 3).Resize(2)
  8.     .Borders.LineStyle = xlContinuous
  9. End With
  10. With Worksheets("CT")
  11.   .Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0) = ComboBox2.Value
  12.   .Cells(Rows.Count, "A").End(xlUp).Offset(-1, 1).Resize(, 21).AutoFill
  13.   .Cells(Rows.Count, "A").End(xlUp).Offset(-1, 1).Resize(, 21).Resize(2)
  14. With .Cells(Rows.Count, "A").End(xlUp).Offset(-1, 1).Resize(, 3).Resize(2)
  15.     .Borders.LineStyle = xlContinuous
  16. End With
  17.  
  18.  
  19. ActiveWorkbook.RefreshAll
  20. Unload Me
  21. End Sub
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top