![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
I have a macro that populates a userform when the workbook is opened. The following lines of code places the current date in a text box named TestDate:
With Me.TestDate .Text = Date End With My problem is that this works on some machines and not on others. All the machines are running Excel 97 SR-1 with all the same add-ins. Any ideas what is causing the problem? [ This Message was edited by: Steve Hartman on 2002-02-20 15:39 ] |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
machines, what is happening...is there an error or isthe format not right ?? Ivan |
|
|
|
|
|
|
#3 | |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
Thanks for the reply.
Quote:
Compile error: Can't find project or library the VBA editor is opened and Date is highlighted in the section of code that I posted earlier. Steve [ This Message was edited by: Steve Hartman on 2002-02-21 11:58 ] |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
Any other ideas?
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
Just a message to move this back up front in a last attempt to get an answer. ANYBODY ever seen this before?
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
Finally figured this one out inderectly by stumbling around in the Microsoft Knowledge Base and wanted to post the solution to maybe save someone else several days of grief.
When the error occurs, you go into Tools>References in the VBA editor. This shows you a list of available reference libraries, with check marks by the ones your project is using I think. I had one checked that was listed as MISSING. (It was Microsoft Windows Common Controls 5.0(SP2) if anyone is interested) Simply unchecking this one solved the problem. I still don't know WHY this occured since the error was occuring on both Windows/Excel 2000, Windows 95/Excel 97, and Windows 98/Excel 97 systems. On each of these combinations it would run on some machines but not on others. Interestinlgy, it would not run on the machine that it was initially created on and used to run just fine on! Go figure. Just sign me formerly [ This Message was edited by: Steve Hartman on 2002-02-27 15:07 ] [ This Message was edited by: Steve Hartman on 2002-02-27 15:08 ] [ This Message was edited by: Steve Hartman on 2002-02-27 15:11 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|