Solved

Module not recogized

Posted on 2013-11-30
6
179 Views
Last Modified: 2013-11-30
Folks,
Open the attached workbook and select the first tab. When you click on the command button it is to call a module but gives me an error object missing. I have checked my spelling and attached within the workbook the modules I am using.
I'm out of options to launch this module.
DetectFormalCells.xlsm
0
Comment
Question by:Frank Freese
  • 3
  • 3
6 Comments
 
LVL 46

Expert Comment

by:Martin Liss
ID: 39687407
The only code in the workbook is this which is in the UserDefinedDetectCells sheet. When that sheet is activated the code runs so please restate the problem.

Private Sub cmdDisplayDataDetectCells_Click()
DetectFormulaCells
End Sub
Private Sub Worksheet_Activate()
ActiveSheet.Range("A2:C10").Select
Selection.FormatConditions.Delete
Selection.NumberFormat = ";;;"
Range("A1").Select
End Sub

Open in new window

0
 

Author Comment

by:Frank Freese
ID: 39687423
In the "cmdDisplayDataDetectCells" command button (Display Data) I call a module "DetectFormatCells"
I've included the module in the worksheet. Do you see the code in the command button?
0
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 39687432
There is no module and no procedure called DetectFormulaCells. Do you want the code that's in Worksheet_Activate to run when you click that button? Do you want it to run from both places?No module
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:Frank Freese
ID: 39687454
Martin,
For reasons unknown the modules I used were NOT were they were suppose to be. Good catch
0
 

Author Closing Comment

by:Frank Freese
ID: 39687455
thank you
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 39687457
You're welcome.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question