VBA Help

hugo15

New Member
Joined
Feb 18, 2010
Messages
23
Wonder if someone can help me please. A colleague has a planning model with lots of code behind it that she had built by some consultants quite a while ago. Last week the model worked fine, but she has gone to use it today and on opening the model she is getting an error message that says "Compile Error - Method or Data member not found" and highlights .checkBox2 in the following code


Sub check_checkboxes()
If Sheet4.CheckBox2.Value + Sheet4.CheckBox3.Value + Sheet4.CheckBox4.Value + Sheet4.CheckBox5.Value + Sheet4.CheckBox6.Value + Sheet4.CheckBox7.Value = 0 Then
Sheet4.Cells(12, 11).Interior.ColorIndex = 3
Else
Sheet4.Cells(12, 11).Interior.ColorIndex = 43
End If


End Sub


I've had a look at the code and can't see anything wrong. The model was originally written in 2003 and we are now running 2010. I have checked with the IT guys and they don't believe there have been any patch updates over the weekend.

Anyone got any bright ideas?
 

Some videos you may like

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

hugo15

New Member
Joined
Feb 18, 2010
Messages
23
Thanks Peter. Sounds like that could well be linked to my issue. I'll go back to the IT guys and get them to look a bit closer.
 

hugo15

New Member
Joined
Feb 18, 2010
Messages
23
We are making progress! Turns out that patch update was applied site wide yesterday morning, just before the user started running the model.......

We have followed the guidance in the documents in the link but it still will not work. My IT colleague has gone to build up a PC without the patch update installed to see if that works. Hopefully it will then run and we'll be able to remove the patch from users machines.
 

hugo15

New Member
Joined
Feb 18, 2010
Messages
23
All sorted now. The patch has been removed and we are back working again :)
 

Watch MrExcel Video

Forum statistics

Threads
1,095,150
Messages
5,442,679
Members
405,191
Latest member
wedloski

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top