Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Strange error message

Hello,

I programmed a Macro in VB. Then I recieved another computer (I even
think the software was unchanged, versions etc.) but now I get an
error message withe the code below

If Sheets("Main").Range("$H$29") = False Then
Response = MsgBox("You did not select a batch" & Chr(10) &
"Please select one or more batches", vbExclamation, "Warning")
Exit Sub
End If

I recieve the message Compile Error: Can't find object or library.

It seems that the error is caused by the Chr(10), but removing that
does not help.

In other Macro's I also use message boxes and Chr(10) returns, there
it does not invoke a problem. It seems to be quite random. Anyone got
a clue?

Kind regards,
Jeroen Kluytmans
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Strange error message

These are the symptoms for missing References.
From VB Editor | Tools | References


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Jeroen Kluytmans" wrote in message
om...
Hello,

I programmed a Macro in VB. Then I recieved another computer (I even
think the software was unchanged, versions etc.) but now I get an
error message withe the code below

If Sheets("Main").Range("$H$29") = False Then
Response = MsgBox("You did not select a batch" & Chr(10) &
"Please select one or more batches", vbExclamation, "Warning")
Exit Sub
End If

I recieve the message Compile Error: Can't find object or library.

It seems that the error is caused by the Chr(10), but removing that
does not help.

In other Macro's I also use message boxes and Chr(10) returns, there
it does not invoke a problem. It seems to be quite random. Anyone got
a clue?

Kind regards,
Jeroen Kluytmans



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Strange error message

Rob van Gelder - http://www.vangelder.co.nz/excel wrote :
These are the symptoms for missing References.
From VB Editor | Tools | References


Any idea which reference is needed? There are almost 50 references not
checked, should I check them all?

Jeroen Kluytmans
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Strange error message

Jeroen,

No, you definitely should not check all the references. Look in
the list and see if any of the check ones are marked MISSING. If
you find such a reference, uncheck it.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Jeroen Kluytmans" wrote in message
om...
Rob van Gelder - http://www.vangelder.co.nz/excel wrote :
These are the symptoms for missing References.
From VB Editor | Tools | References


Any idea which reference is needed? There are almost 50

references not
checked, should I check them all?

Jeroen Kluytmans



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Strange error message

"Chip Pearson" wrote

Jeroen,

No, you definitely should not check all the references. Look in
the list and see if any of the check ones are marked MISSING. If
you find such a reference, uncheck it.


Yep, there was one missing, this solved the problem


Thanks
Jeroen
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
Strange Message when opening workbook Jim Excel Discussion (Misc queries) 3 January 29th 09 04:15 PM
Strange message when Excel starts. vezerid Excel Discussion (Misc queries) 2 December 15th 06 01:03 PM
Strange error Andy Setting up and Configuration of Excel 1 April 18th 06 08:11 PM
Strange message? Randy New Users to Excel 1 July 8th 05 08:21 PM
Strange Error Message Michael Windmeier Excel Discussion (Misc queries) 0 December 3rd 04 08:18 AM


All times are GMT +1. The time now is 09:34 AM.

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

About Us

"It's about Microsoft Excel"