Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jd jd is offline
external usenet poster
 
Posts: 91
Default treeview and laptops

I am working on a huge project using treeviews in Excel. Everything works
greate on the desktops, but only half of the laptops work OK. Why would some
of th laptops error out? Error(57121) = "Application-defined or
object-defined error"

I would greatly appreciate any help you can give!

Thank you!

JD
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default treeview and laptops

check versioning/availability of the mscomctl.ocx

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"?B?SkQ=?=" wrote :

I am working on a huge project using treeviews in Excel. Everything
works greate on the desktops, but only half of the laptops work OK.
Why would some of th laptops error out? Error(57121) =
"Application-defined or object-defined error"

I would greatly appreciate any help you can give!

Thank you!

JD


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default treeview and laptops

hmm...

in any case you're lucky it's mnot a compile error.

you can't code latebound and remove reference.
as you'll have the treeview embedded in your form
or worksheet..

If and only IF the users/administrator have
Enabled "access to the VisualBasic module"

you could check the Major and Minor in the references
via VBIDE (Microsoft VBA Extensibility)
but these will not be conclusive..
though hardcoding may not be pretty either..


Sub RefComctl()
Const cVers = "6.1.97.82"
Dim sFile$, sVers$

With ThisWorkbook.VBProject.References("mscomctllib")
If .Major = 2 And .Minor = 0 Then
sFile = .FullPath
'version ok
Else
MsgBox "you'll need to upgrade your msComCtl.ocx"
Exit Sub
End If
End With

With CreateObject("Scripting.FileSystemObject")
sVers = .GetFileVersion(sFile)
If sVers < cVers Then
MsgBox _
"you need version: " & cVers & vbNewLine & _
"you have version:" & sVers
End If

End With

End Sub





keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


KR wrote in message
:

Is there a code snippet somewhere to help check this? I'm using
treeview in a new project, sounds like I might run into the same
problem if I deploy without code to check this...

"keepITcool" wrote in message
...
check versioning/availability of the mscomctl.ocx

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"?B?SkQ=?=" wrote :

I am working on a huge project using treeviews in Excel.
Everything works greate on the desktops, but only half of the
laptops work OK. Why would some of th laptops error out?
Error(57121) = "Application-defined or object-defined error"

I would greatly appreciate any help you can give!

Thank you!

JD






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
Link 2 laptops to 1 spreadsheet with immediate updates old coach Links and Linking in Excel 1 February 10th 08 02:16 PM
Treeview Patrick Choi[_2_] Excel Programming 1 September 6th 04 08:29 AM
How to Treeview in VBA kvenku[_9_] Excel Programming 1 May 27th 04 01:03 PM
TreeView marijan glavac[_2_] Excel Programming 2 April 30th 04 07:28 AM
Treeview Max Scott Excel Programming 2 October 3rd 03 02:00 PM


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