+ Reply to Thread
Results 1 to 5 of 5

Solving Error 438

  1. #1
    Forum Contributor
    Join Date
    05-13-2019
    Location
    Halifax, Canada
    MS-Off Ver
    2016
    Posts
    176

    Solving Error 438

    Hi Gurus/Experts,

    I have written the following codes which assign worksheet, if available, to "tempo". I am now trying to write a code that checks if the "tempo" has worksheet object. And if it is present, it exits the "For Loop".

    Please Login or Register  to view this content.
    Currently, when the code tries to execute Line "If tempo <> Empty Then Exit For", it gives Error 438. Can you please advise me the proper code?

    Appreciate your time and help.

    Thank you
    Roshan

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Solving Error 438

    Try
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Solving Error 438

    What is in the variables slm, lm and cy?

  4. #4
    Forum Contributor
    Join Date
    05-13-2019
    Location
    Halifax, Canada
    MS-Off Ver
    2016
    Posts
    176

    Re: Solving Error 438

    slm = 2 digits last month
    lm = 3 character last month
    cy = four digits current year

    Anyway thank you TMS for your solution.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Solving Error 438

    You're welcome. Thanks for the rep.

+ 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] Solving subscript out of range error 9
    By Najwa_X in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-15-2020, 09:03 AM
  2. [SOLVED] I'm getting Run-time error ‘13’: type mismatch and unsure about solving.
    By sdingman in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-10-2020, 03:34 AM
  3. Need help solving #VALUE error
    By BreeLan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2018, 01:43 AM
  4. [SOLVED] Help Solving #REF error (INDIRECT function)
    By omni13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2014, 10:01 AM
  5. solving Equation N/A# Error
    By glaswal in forum Excel General
    Replies: 1
    Last Post: 06-28-2011, 10:46 AM
  6. Help on solving an error..!!!
    By Hurundee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-04-2008, 09:32 AM
  7. Problem solving div/0 error in a zero value cell
    By robert s in forum Excel General
    Replies: 5
    Last Post: 03-18-2006, 06:35 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