• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to fill non-contiguous cells with the same text value with one mouse-click.

Holding down the control key i select cells A1, B5, C8, D12, E17.
Still holding down the Ctrl key i use the Fill Color to fill all 5 cells with just one color and with one mouse click. In the same way i would like to fill all 5 cells with a common text value BUT unable to do so. So i'm using 3 lines of vba instead......
Sub AutoFillTextValue
For each cell in Selection
Cell.value = "testing"
Next cell
End Sub
My question.....
How can i replace the visual basic part with Excel.
Many thanks.
 
Hi James ,

I have no idea how it can be done with one mouse click , but entering the text in the formula bar and pressing CTRL ENTER does the same.

Narayan
 
Back
Top