Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I get an error in this Subroutine at the line marked , it works fine
if I activate the worksheet first and remove the "Worksheets(1)." from the code. Option Explicit Dim Rng As Range Dim Rw As Long Private Sub UserForm_Activate() Rw = Worksheets(1).Range("A65536").End(xlUp).Row Set Rng = Worksheets(1).Range(Cells(2, 2), Cells(Rw, 2)) ComboBox1.RowSource = Rng.Address End Sub Any idea why this is happening ? Thanks Sal |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error referencing linked dynamic range | Links and Linking in Excel | |||
Referencing cell in active row | Excel Worksheet Functions | |||
referencing the active cell | Excel Programming | |||
Range Question / error 1004: method Range of object Worksheet has failed | Excel Programming | |||
Setting a range value to the last cell in active worksheet. | Excel Programming |