+ Reply to Thread
Results 1 to 5 of 5

Object Required - No Set

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Object Required - No Set

    Hi,

    Can someone help me with a Object Required error? Please see the following code. I get an error on the "For Each Mach in Mach" line. I believe this has something to do with "Mach" not being set, but I have no idea how to do so.

    Please Login or Register  to view this content.
    Thanks

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

    Re: Object Required - No Set

    The values in the array are strings, not worksheets.

    You could try declaring Mach as Variant, or perhaps even string.

    Mind you, to me anyway it's not clear what you want to do so that might not achieve the required result.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Object Required - No Set

    Norie,

    Thanks for the tip. It works but only to a certain extent, the macro stops after adding 1 sheet when it should add more. Maybe if I explained what I am trying to do you could give me a few more tips? I am not proficient in VBA so I could be way off track with the current code.

    All I am trying to do is search the sheets with the names in the array of my original post and check cell O236 for a number greater than 0. If true I would like to add a new sheet and name it with the sheet it copied and "Budgets" (ex. Mach-1 Budgets). If false do nothing.

    Thank You

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

    Re: Object Required - No Set

    Do you want to check O236 in each of the sheets you've named in the array?

  5. #5
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Object Required - No Set

    Yes, my apologies for not making that clear.

+ 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. [SOLVED] 424 - Object required pop-up
    By VICTORIE in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2012, 03:27 PM
  2. Name.Object (Error Object Required)
    By dssrun209 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2010, 01:38 PM
  3. Object required? C'mon!
    By VBAnub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2006, 12:59 PM
  4. [SOLVED] Object required?
    By Jeff Wright in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2005, 05:06 PM
  5. [SOLVED] Object required?
    By Jeff Wright in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2005, 04:06 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