Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created January 20, 2017 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndthanh/409f4cd4d4f6ae54773f28a85f5e0fa9 to your computer and use it in GitHub Desktop.
Save ndthanh/409f4cd4d4f6ae54773f28a85f5e0fa9 to your computer and use it in GitHub Desktop.
Private Sub CMDADD_Click()
On Error Resume Next
Dim Arr(), i
Arr = Dic.Items
If ActiveCell.Column = 1 Then
For i = 0 To Dic.Count - 1
Cells(i + ActiveCell.Row, "A").Resize(, 4) = Split(Arr(i), ";")
Next
End If
Erase Arr()
Set Dic = Nothing
Unload Me
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment