+ Reply to Thread
Results 1 to 4 of 4

Compile error: Member already exists in an object module from which this object modul

  1. #1
    Registered User
    Join Date
    10-25-2011
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    25

    Compile error: Member already exists in an object module from which this object modul

    I have a homework assignment and I was checking my progress to make sure I was going along alright and I keep getting this error. And it highlights the Sub Workbook_open() part of VB. I would appreciate any help I can get. Thank you.
    Attached Files Attached Files
    Last edited by jaje21; 10-25-2011 at 02:25 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Compile error: Member already exists in an object module from which this object m

    Firstly you have code in thisworkbook object that is placed outside of any routine. I think the code should be in the workbook open event.

    The error you highlight is cause by using the same name for a control on the userform and a const declared within the scope of the userform object.

    Either change the names or move the consts into a standard code module and declare as public consts.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Compile error: Member already exists in an object module from which this object m

    Hi jaje21
    Welocome to the forum

    You have a constant and Optionbox both named "regular_shipping". you will have to change one to a different name
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  4. #4
    Registered User
    Join Date
    10-25-2011
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Compile error: Member already exists in an object module from which this object m

    Thank you Pike for the welcome. Thank you both for the help. We took the workbook from an earlier assignment and were to make it more involved so that is where this is come from so again thank you. I am sure I will be posting a lot more because this is an online class and I'm not very confident in doing VB.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1