DutchKevin
Board Regular
- Joined
- Apr 13, 2011
- Messages
- 133
- Office Version
- 365
- Platform
- Windows
Hello All,
My problem is probably quite easy to code, but so far i'm unsuccesfull.
Here's my case.
I want the user to be able to select a random range on a sheet.
Then with one button he can then "paste" a predefined value into that entire range.
Here's what i have so far. The color works fine, but the data only fills the first cell.
I also tried:
and
with same result
Looking forward to your ideas.
Thanks
Kevin
My problem is probably quite easy to code, but so far i'm unsuccesfull.
Here's my case.
I want the user to be able to select a random range on a sheet.
Then with one button he can then "paste" a predefined value into that entire range.
Here's what i have so far. The color works fine, but the data only fills the first cell.
Code:
Sub Fill_V()
With SELECTION.Interior
.ColorIndex = 15
.Pattern = xlSolid
End With
ActiveCell.FormulaR1C1 = "V"
End Sub
Code:
ActiveCell.CurrentRegion.Value = "V"
Code:
ActiveCell.Range.Value = "V"
Looking forward to your ideas.
Thanks
Kevin