Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Basic Member Already Exists in an object module

Tags:

vba

I am brand new to visual basic today and I was writing my program but I get a compile error

Member already exists in an object module from which this object module derives

My function prototype is

Function calculate(count As Integer) As String

I was wondering why this is giving me this error

like image 352
Ryan Newman Avatar asked Jun 17 '14 22:06

Ryan Newman


1 Answers

It would appear that you are designing a form, and have an object on that form (such as a text box or command button) which is also named calculate, disregarding case, since VBA is generally not case sensitive.

like image 79
Monty Wild Avatar answered Sep 29 '22 11:09

Monty Wild