Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Gustaf
I'm not sure if you can apply a value to a whole range without iterating through it but the code below will do what you want Option Explicit Dim MyCell, MyRng As Range Dim MyStr As String Private Sub CommandButton1_Click() Set MyRng = Sheets("Sheet1").[B4:AE4] MyStr = Cells(2, 1).Value For Each MyCell In MyRng MyCell.Value = MyStr Next End Sub Hope this helps Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Filter Range on Sheet B Based on List on Sheet A | Excel Discussion (Misc queries) | |||
How do I edit a selected range then copy the range into an new sheet??? | Excel Programming | |||
HELP CONSOLIDATING SAME RANGE EACH SHEET TO SEPARATE SHEET AND RANGE | Excel Discussion (Misc queries) | |||
HELP CONSOLIDATING SAME RANGE EACH SHEET TO SEPARATE SHEET AND RANGE | Excel Programming | |||
HELP CONSOLIDATING SAME RANGE EACH SHEET TO SEPARATE SHEET AND RANGE | Excel Worksheet Functions |