Last active
December 24, 2015 01:29
-
-
Save sooop/6723991 to your computer and use it in GitHub Desktop.
Excel VBA Routines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub FillEmptyCell() | |
' Fill empty cell with specified string to selection | |
Dim str As String | |
str = InputBox("Enter the string", ," ") | |
For Each Cell In Selection | |
If IsEmpty(Cell) Then Cell.Value = str | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment