Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Sub AddTextOnRight()
  2. 'Updateby20131128
  3. Dim Rng As Range
  4. Dim WorkRng As Range
  5. Dim addStr As String
  6. On Error Resume Next
  7. xTitleId = "Hoc Excel Online"
  8. Set WorkRng = Application.Selection
  9. Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
  10. addStr = Application.InputBox("Add text", xTitleId, "", Type:=2)
  11. For Each Rng In WorkRng
  12. Rng.Value = Rng.Value & addStr
  13. Next
  14. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement