vba changes existing form

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA changes on existing form

VBA changes on existing form

resolvedResolved · Medium Priority · Version 2007

Sabrina has attended:
Excel Advanced course

VBA changes on existing form

Dear Sirs,

A previous colleague has created a form with some defined boxes and macro behind linked to the form for allowance of revenue purposes.

I was hoping to amend the form rather than re-create the form by replacing name of the boxes by relevant names and deleting the not in use boxes. I have done this successfuly on the design of the forms.

However when I load the form, an error message comes up with " compile error method or data member not found". It is highlighting in yellow one part of the macro.

I wonder whether you could highlight me with some help ? Or maybe I could email you the document. I am booked on a VBA class mid December but was hoping to deal with this before.

Regards
Sabrina

RE: VBA changes on existing form

Hi Sabrina

Yes it would help if you could email your document to info@stl-training.co.uk

Thanks
Doug Dunn
Best STL

RE: VBA changes on existing form

Thank you Doug.

I have just emailed you the document.

Hopefully you received it.

Best regards

Sabrina

RE: VBA changes on existing form

Thanks Sabrina

I received your 2 documents and will get back to you as soon as I can.

Regards
Doug
Best STL

RE: VBA changes on existing form

Hi Sabrina

Sorry for not getting back sooner.

I've had a look at your form today. The reason you are getting the error "compile error method or data member not found" on the Allowance Form A is because the code is referencing Textbox7. This doesn't exist and I think is the Reason for Allowance box added to the Business centre rev file.

So in the Allowance Form A workbook you need to remove any reference to Textbox7, for example Or Me.textbox7 = "".
Also comment out the procedure Textbox7_change()


To find a control such as Textbox7 -
In the vb editor
Double click on Userform1
In the Properties window click the drop down to view all controls

Then whichever one you click becomes selected on the form.

Hope that helps for the moment.


Regards
Doug Dunn
Best STL

Fri 29 Nov 2013: Automatically marked as resolved.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Validating text entries

1. Select the range of cells.
2. From the Data menu, select Validation.
3. Select the Settings tab.
4. From the Allow dropdown list, select Custom.
5. In the Formula box, enter the following formula:

=IsText (A1)

where A1 is the first cell in the range.
6. Click OK.

View all Excel hints and tips


Server loaded in 0.07 secs.