white_flag
Active Member
- Joined
- Mar 17, 2010
- Messages
- 331
helllo
I have this code:
but I like to declare
with this (this is not going):
what can be done?
I have this code:
Code:
Sub test()
Dim my_range As Range
Dim c As Variant
Set my_range = ActiveWorkbook.Sheets(Me.Controls("Combobox1").Value).Range("M25:M30")
For Each c In my_range
c.Formula = Cells(c.Row, c.Column).Value & "*(1+$L$294/100)"
Next c
End Sub
Code:
Set my_range = ActiveWorkbook.Sheets(Me.Controls("Combobox1").Value).Range("M25:M30")
Code:
Set my_range = ActiveWorkbook.Sheets(Me.Controls("Combobox1").Value).Range(.Cells(25, 13), .Cells.SpecialCells(xlCellTypeLastCell))