Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default stupid cryptic messages

can someone explain to me why this isn't working and what the error message

compile error: Object required.

Sub tester()
Dim cntr As Integer
Set cntr = ActiveWorkbook.Names.Count

End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default stupid cryptic messages

Set is only used for objects, hence the message. Change to:

cntr = ActiveWorkbook.Names.Count

hth,

Doug

"Jonathan Cooper" wrote in
message ...
can someone explain to me why this isn't working and what the error
message

compile error: Object required.

Sub tester()
Dim cntr As Integer
Set cntr = ActiveWorkbook.Names.Count

End Sub




Reply
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
Stupid bmoag New Users to Excel 1 November 15th 08 06:28 PM
Cryptic message Vince Excel Discussion (Misc queries) 2 August 22nd 06 08:05 PM
refedit control cryptic returned value [email protected] Excel Programming 2 January 25th 06 06:21 PM
Stupid, stupid question.... DS Excel Programming 3 September 25th 05 03:51 PM
Stupid Karine Excel Discussion (Misc queries) 0 May 29th 05 09:56 AM


All times are GMT +1. The time now is 11:05 AM.

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"