+ Reply to Thread
Results 1 to 9 of 9

Getting an error "Method or data member not found" Help Please and thank you

  1. #1
    Registered User
    Join Date
    09-05-2014
    Location
    utah
    MS-Off Ver
    2013
    Posts
    5

    Getting an error "Method or data member not found" Help Please and thank you

    Im trying to create a form with buttons to enter data.
    i am new to visual basic so please explain any answers in detail.


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by bnielson; 09-05-2014 at 01:54 AM. Reason: sent wrong workbook

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Getting an error "Method or data member not found" Help Please and thank you

    Hi, bnielson,

    welcome to ExcelForum. Please have a read at Forum Rule #3 and add code-tags to your procedure prior to us having a look at the code.

    And please consider to attach your workbook to have a look which would make answering a lot easier.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    09-05-2014
    Location
    utah
    MS-Off Ver
    2013
    Posts
    5

    Re: Getting an error "Method or data member not found" Help Please and thank you

    ok i think i got all that sorry

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Getting an error "Method or data member not found" Help Please and thank you

    Hi, bnielson,

    just from looking at the code I can´t find the reason why any error should occur as you don´t specify which error number is shown (worksheet not avaialble or trailing blanks behind name, worksheet protected, merged cells). That´s why I asked for a sample workbook.

    BTW: is your sheet called "IP Address Book>"?

    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    09-05-2014
    Location
    utah
    MS-Off Ver
    2013
    Posts
    5

    Re: Getting an error "Method or data member not found" Help Please and thank you

    Workbook should be attached now.

    and the sheet is named "sheet1"

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Getting an error "Method or data member not found" Help Please and thank you

    There's no control on the userform with the name txtEquip, or txtEqui, or txtIP, or txtSub, or txtGate.
    If posting code please use code tags, see here.

  7. #7
    Registered User
    Join Date
    09-05-2014
    Location
    utah
    MS-Off Ver
    2013
    Posts
    5

    Re: Getting an error "Method or data member not found" Help Please and thank you

    Can you explain how to add control to the userform, thanks

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Getting an error "Method or data member not found" Help Please and thank you

    The controls are there, they just don't have the right names.

  9. #9
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Getting an error "Method or data member not found" Help Please and thank you

    Hi, bnielson,

    only txtSite has been renamed accordingly. You would need to open the properties window via F4 in the VBE and change the names for Textbox1 to Textbox4 accordingly to match your code or adapt your code to match the names of the Textboxes.

    Ciao,
    Holger

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Corrupt Reference file? "Method or Data Member Not Found"
    By manda_w in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2013, 07:51 PM
  2. [SOLVED] Error Msg: "Compile error: Method or data member not found" in VBA code
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2012, 02:12 AM
  3. Command Buttons - "Method or data member not found"
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-20-2011, 02:43 AM
  4. Me.Controls.Add returns "Compile error, method or data member not found"
    By mattisch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2007, 07:53 AM
  5. "Compile error: Method or data member not found", code needs fix
    By cheeky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2007, 09:07 PM

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