Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Dim Rng As Range
  2.  
  3. Set Rng = Range("B1")
  4.  
  5. Rng.AutoFill Destination:=Range(Rng, Rng.Offset(1))
  6.  
  7. UserForm1.TextBox1.value = Rng.Offset(1).value
  8. Rng.Offset(1).ClearContents ' <-- clear the added cell
  9.  
  10. UserForm1.Show
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement