LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 293
Default Object Required Error

Hey Snake,

That did the trick.

I'll remember that in the future.

Thanks

-Minitman



On Wed, 7 May 2008 08:44:15 +0200, "Snake Plissken"
wrote:

try without word "Set" in that line - it seems you just need to give a value
to the variable "lMCL_LastRow"



|
| Here is the code:
| ______________________________________________
| Option Explicit
| Dim i As Integer
| Dim lMCL_LastRow As Long
| Dim rListMCL As Range
| Dim ws1 As Worksheet
| ______________________________________________
|
| Private Sub UserForm_Initialize()
| Set ws1 = Workbooks("MCL3.xls").Worksheets("CustList")
| ws1.Activate
| Set lMCL_LastRow = ws1.Range("A65536").End(xlUp).Row '<< this line
| Set rListMCL = ws1.Range("A2:CB" & lMCL_LastRow)
| With CRefName
| .RowSource = rListMCL.Address
| .ColumnCount = rListMCL.Columns.Count
| .ListIndex = 0
| End With
| End Sub
| ______________________________________________
|
|
| Anybody have any idea as to what I am missing?
|
| Any help, suggestion, pointers or links would be greatly appreciated.
|
| Thanks for looking at my question.
|
| -Minitman


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 424 : Object required vivmaha Excel Programming 3 June 1st 07 02:11 AM
Object required error anamarie30 Excel Programming 3 April 25th 07 08:28 PM
Object Required error Patrick Simonds Excel Programming 3 August 26th 06 07:51 PM
Error: Object required Stuart[_21_] Excel Programming 2 September 29th 05 09:07 AM
Syntax Error Runtime Error '424' Object Required sjenks183 Excel Programming 1 January 23rd 04 09:25 AM


All times are GMT +1. The time now is 10:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"