+ Reply to Thread
Results 1 to 4 of 4

Object required Error in running the macro

  1. #1
    Registered User
    Join Date
    05-01-2020
    Location
    India
    MS-Off Ver
    16
    Posts
    1

    Object required Error in running the macro

    I am getting an error as "Object required" while running the macro which i have assigned to a text box.

    I have copied the macro from another excel which has only one sheet. This is working fine there and generating the insert script based on the data in the sheet.

    This macro i am inserting it in another workbook in the 4th sheet (this workbook has 4 sheets). Below is the macro used :

    Please Login or Register  to view this content.
    End Sub

    Is it something with the way i am doing a copy and paste ?

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,189

    Re: Object required Error in running the macro

    you didn't say WHERE the code error happens.

    if its the DIM ...FIND, then put the find in its own line outside of the dim.
    DONT use colons to separate commands.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,734

    Re: Object required Error in running the macro

    Do you have a userform called OutputForm in that workbook?
    If so does it have a textbox called txtOutput?

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Object required Error in running the macro

    Quote Originally Posted by ranman256 View Post
    DONT use colons to separate commands.
    That is a style preference (yours maybe not ours), not a rule.

+ 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. Replies: 2
    Last Post: 08-07-2014, 03:14 PM
  2. Changing control property in a macro, getting error 424 Object required
    By JCMus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2014, 03:10 PM
  3. [SOLVED] Macro Help Object required error
    By wonderd in forum Excel General
    Replies: 8
    Last Post: 06-27-2014, 04:31 PM
  4. [SOLVED] Trying to run a macro and I get an object required error?
    By Learner1234 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 01-13-2014, 10:36 PM
  5. [SOLVED] Simple Calendar pop up macro --> error Run-time error '424': Object required
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 10:38 AM
  6. getting run time error 424 'object required' while running an sql query in VBA
    By basubdd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2013, 03:31 AM
  7. Object error when running macro
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2012, 03:18 PM

Tags for this Thread

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