MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 6th, 2002, 08:42 PM   #1
Paul-Johnson
New Member
 
Join Date: Feb 2002
Posts: 47
Default

I have a pretty robust program in Excel. It has worked fine for months. I need to work on it tonight at home but I get a message that says it cannot find the reference librabry for many of the items.

A previous version works just fine. Any hints ? I need to make changes tonight. The file goes into production tomorrow.

Help Please !!!

PJ
Paul-Johnson is offline   Reply With Quote
Old Mar 6th, 2002, 09:01 PM   #2
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Quote:
On 2002-03-06 19:42, Paul-Johnson wrote:
I have a pretty robust program in Excel. It has worked fine for months. I need to work on it tonight at home but I get a message that says it cannot find the reference librabry for many of the items.

A previous version works just fine. Any hints ? I need to make changes tonight. The file goes into production tomorrow.

Help Please !!!

PJ
In the VBA Editor
Click on Tools
Select reference

In the dialog listbox look for any boxes with missing in them
These are the referneces you will need to
reference ie. find them in your system.


Ivan
Ivan F Moala is offline   Reply With Quote
Old Mar 6th, 2002, 09:05 PM   #3
Paul-Johnson
New Member
 
Join Date: Feb 2002
Posts: 47
Default

I have 50-60 that are unchecked. They were not ALL checked in the past.

Is there a particularly one that I should look for ? Or, should I just include them all ?

Thanks again
Paul-Johnson is offline   Reply With Quote
Old Mar 6th, 2002, 09:37 PM   #4
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Quote:
On 2002-03-06 20:05, Paul-Johnson wrote:
I have 50-60 that are unchecked. They were not ALL checked in the past.

Is there a particularly one that I should look for ? Or, should I just include them all ?

Thanks again
Hi Paul
Are there any refrences with the word
"Missing" next to them ??
These are the ones you need to find.

Ivan
Ivan F Moala is offline   Reply With Quote
Old Mar 6th, 2002, 09:42 PM   #5
Paul-Johnson
New Member
 
Join Date: Feb 2002
Posts: 47
Default

When I look in the object browser and in the References dialogue box - I do not see anything with the word missing next to it
Paul-Johnson is offline   Reply With Quote
Old Mar 6th, 2002, 09:57 PM   #6
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Quote:
On 2002-03-06 20:42, Paul-Johnson wrote:
When I look in the object browser and in the References dialogue box - I do not see anything with the word missing next to it
Hi Paul
OK ....what is ticked in the reference box
AND what does the program do...this will
give me an indication as to what libraries
you need....
Typical Library files are....

Visual Basics for applications, MS Excel object library, OLE automation, MS Office lirary...


Ivan



Ivan F Moala is offline   Reply With Quote
Old Mar 6th, 2002, 10:00 PM   #7
Paul-Johnson
New Member
 
Join Date: Feb 2002
Posts: 47
Default

Eaco of those is checked.

The vba makes menus, uses some custom forms to create list boxes & display messages, with a bulk of the code opening other files copying & filtering data.

The first piece of code it chokes on is "newmenu"
Paul-Johnson is offline   Reply With Quote
Old Mar 6th, 2002, 10:09 PM   #8
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Quote:
On 2002-03-06 21:00, Paul-Johnson wrote:
Eaco of those is checked.

The vba makes menus, uses some custom forms to create list boxes & display messages, with a bulk of the code opening other files copying & filtering data.

The first piece of code it chokes on is "newmenu"
Paul
Could you post code that it stops on and the error.....

Ivan
Ivan F Moala is offline   Reply With Quote
Old Mar 6th, 2002, 10:18 PM   #9
Paul-Johnson
New Member
 
Join Date: Feb 2002
Posts: 47
Default

The error says Compile error:
Can't find project or library

Sub MakeMenuBar()
Dim NewMenuBar As CommandBar

' Delete menu bar if it exists
Call DeleteMenuBar

' Add a menu bar
'***** error here ******
Set NewMenuBar = CommandBars.Add(MenuBar:=True)
With NewMenuBar
.Name = "DBMenubar"
.Visible = True
End With

' Copy the File menu from Worksheet Menu Bar
CommandBars("Worksheet Menu Bar").Controls(1).Copy _
Bar:=CommandBars("DBMenubar")


' Add a new menu
Set NewMenu = NewMenuBar.Controls.Add _
(Type:=msoControlPopup)
NewMenu.Caption = "&Import Data"

' Add a new menu item
' This menu item imports the monthly Review _
for data cleanup
Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
With NewItem
.Caption = "&Import Monthly Review"
.FaceId = 721
.OnAction = "open_monthly_review"
End With



' Add a new menu item
' This menu item imports the monthly master _
for report generation
Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
With NewItem
.Caption = "I&mport Monthly Data"
.FaceId = 720
.OnAction = "open_Monthly_master"
End With


' Add a new menu
Set NewMenu = NewMenuBar.Controls.Add _
(Type:=msoControlPopup)
NewMenu.Caption = "&Monthly Review"

' Add a new menu item
' This menu item .....

Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
With NewItem
.Caption = "&Upload Reviewed Data"
.FaceId = 705
.OnAction = "Upload_Monthly_Master"
End With



' Add a new menu
Set NewMenu = NewMenuBar.Controls.Add _
(Type:=msoControlPopup)
NewMenu.Caption = "&Standard Reports"


' Add a new menu item
Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
With NewItem
.Caption = "Weekly Report"
'.OnAction = "GetExportFileName"
End With

' Add a new menu item
Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
With NewItem
.Caption = "Monthly Report"
.OnAction = "Create_Standard_Reports"
End With

' Add a new menu item
Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
With NewItem
.Caption = "Customer Report"
.OnAction = "Create_customer_reports"
End With

' Add a new menu item
'Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
'With NewItem
'.Caption = "Exception Report"
'.OnAction = "GetExportFileName"
'End With

' Add a new menu
Set NewMenu = NewMenuBar.Controls.Add _
(Type:=msoControlPopup)
NewMenu.Caption = "&Exception Reports"

' Add a new menu item
Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
With NewItem
.Caption = "TBD"
' .OnAction = "shell"
End With

' Add a new menu
' Set NewMenu = NewMenuBar.Controls.Add _
' (Type:=msoControlPopup)
' NewMenu.Caption = "Sa&ve Reports"
'
' ' Add a new menu item
' Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
' With NewItem
' .Caption = "Export Standard Report"
' .OnAction = "Export_Standard_Monthly"
' End With



' Add a new menu
Set NewMenu = NewMenuBar.Controls.Add _
(Type:=msoControlPopup)
NewMenu.Caption = "Admin"


' Add a new menu item
Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
With NewItem
.Caption = "&Restore Normal Menu"
.OnAction = "DeleteMenuBar"
End With

' Copy the File menu from Worksheet Menu Bar
CommandBars("Worksheet Menu Bar").Controls(7).Copy _
Bar:=CommandBars("DBMenubar")
CommandBars("Worksheet Menu Bar").Controls(9).Copy _
Bar:=CommandBars("DBMenubar")

End Sub

Paul-Johnson is offline   Reply With Quote
Old Mar 6th, 2002, 10:29 PM   #10
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Have you got the;

Microsoft Office X.0 object Library

Ticked ?? where X.0 is your version number
eg Xl 2000 = 9.0

Ivan
Ivan F Moala is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:37 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes