Happy Friday!!
Is it possible to edit the code below to apply the change to all selected cells at once?
Currently a box appears requiring user input to add numbers or text to the beginning of selected cells. The code below below does not allow one input to update all selected cells; instead the box appears repeatedly for each cell selected. This means, if I highlight 5 cells to add '00' to the beginning of each cell, the box will appear 5 times and I have to type in '00' in each input box and the selected cells are then updated one at a time.
I would like to be able to highlight multiple cells, have one input box appear, type in the text/numbers to add to the beginning of cells, then press Enter & have all cells updated at once.
Dim c As Range
Dim myValue As Variant
For Each c In Selection
myValue = InputBox("Enter Numbers/Text to Add to Selected Cells")
If c.Value <> "" Then c.Value = myValue & c.Value
Next
Is it possible to edit the code below to apply the change to all selected cells at once?
Currently a box appears requiring user input to add numbers or text to the beginning of selected cells. The code below below does not allow one input to update all selected cells; instead the box appears repeatedly for each cell selected. This means, if I highlight 5 cells to add '00' to the beginning of each cell, the box will appear 5 times and I have to type in '00' in each input box and the selected cells are then updated one at a time.
I would like to be able to highlight multiple cells, have one input box appear, type in the text/numbers to add to the beginning of cells, then press Enter & have all cells updated at once.
Dim c As Range
Dim myValue As Variant
For Each c In Selection
myValue = InputBox("Enter Numbers/Text to Add to Selected Cells")
If c.Value <> "" Then c.Value = myValue & c.Value
Next