Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default Compiling error! VBA Help needed

Hi Everyone,

I am having a problem integrating an Active X component in my work sheet,
where the first time I run the worksheet, it will have a compiling error
pointing at the ActiveX Component, but if I close the worksheet and then
reopen again, it runs fine. Does anyone know how I can get rid of this
problem?
The error message is:
Compile Error: Method or data member not found.
and it is pointing at this line:
Set sckMail = frmSck.Winsck
Any help would be much appreciated!

Thanks heaps!
= )
Cheers,
Mary
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Compiling error! VBA Help needed

Hi Mary,
Please tell us what version and OS and also post the code you are
using...are you using Late or early binding?..

Cheers,
OJ

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default Compiling error! VBA Help needed

Hi OJ,
I am currently using Windows 2000 and Office 2000, actually I am no expert
in coding, so I am not too sure if this classifies as a late or early
binding...
but I could send you the excel worksheet if you don't mind...

I have a private fuction which declares it...
Private WithEvents sckMail As WinSock ' project must include
the Winsock control
' or a reference to the
mswinsck.ocx

Thanks heaps!
Cheers,
Mary

"OJ" wrote:

Hi Mary,
Please tell us what version and OS and also post the code you are
using...are you using Late or early binding?..

Cheers,
OJ


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Compiling error! VBA Help needed

Hi Mary,
Feel free to mail the sheet but try this first...

Uncheck the reference to winsock and run this sub...do you get an
error?

Sub Createthis()
Dim objWinSock as Object

Set objWinSock = CreateObject("WinSock")

End SUb

FYI, early binding is creating a reference to an object in the
ToolsReferences dialog and the above code is an example of Late
Binding...

Hth,
OJ

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
VLookup #VALUE! error help needed to resolve Kristin Excel Worksheet Functions 4 February 3rd 10 07:50 PM
#VALUE! error message help needed please Bob Newman Excel Worksheet Functions 3 November 25th 07 04:56 PM
error while compiling "OBJECT REQUIRED" nuti Excel Discussion (Misc queries) 1 January 12th 06 03:14 PM
Help needed with Run Time Error 1004 Manesh Excel Discussion (Misc queries) 0 April 4th 05 05:07 AM
Help Needed: Calculation error Adrian Excel Programming 2 June 22nd 04 07:53 PM


All times are GMT +1. The time now is 01:47 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"