Home » excel » excel – Button to insert text in selected cell

excel – Button to insert text in selected cell

Posted by: admin May 14, 2020 Leave a comment

Questions:

I need a button that when pressed it inserts a text,let’s say:”On” in the selected cell or selected cells, in a specified range A1:C5.

How to&Answers:

try:

Sub Button1_Click()

   Intersect(Selection, Range("A1:C5")) = "On"

End Sub