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

vba changes existing form

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

VBA changes on existing form

ResolvedVersion 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:

Turn Function tooltips on and off

Excel 2002 (XP) and Excel 2003 have the Function tooltips facility. When you type in a function name followed by a bracket, for example, =IF(, a yellow box appears beside the function name and lists the function's arguments. This is very useful when you can't quite remember the order of a function's arguments or what the arguments actually are!

However, Function tooltips can become annoying. To turn them off, choose Tools|Options. and select the General tab. Then, untick the Function tooltips box and choose OK.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.