+ Reply to Thread
Results 1 to 6 of 6

Run-time error '438'

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Colchester, England
    MS-Off Ver
    Excel 2010
    Posts
    28

    Run-time error '438'

    Hello

    I have the following VBA coding in my workbook. It was working fine but now I'm getting a Run time error 438 message "Object doesn't support this property or method". It lets me choose "end" and will then continue to print the worksheet, but I need the workbook to be fully working before I can let it loose on my colleagues! I know that some people will get a bit freaked by a run time error message!

    I have no idea where to start looking for the error that's making this message appear as the run time error message box is greying out the debug button.

    If anyone can help me, I'd really appreciate it.

    Any changes to the coding need to be compatible with excel versions 2003, 2007 & 2010.

    Many thanks.



    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Re: Run-time error '438'

    Is the VBA module password protected? Could explain why you're not getting a debug option...


    To stick a band aid over it....add:

    Please Login or Register  to view this content.
    In fact, putting in a resume next could be your only way to find the problem. Stick the resume next at the top and run the macro, if it works then move the resume next further down in the macro and try again. Rinse and repeat until you get the error, the line of code directly above the resume next will be the one causing the problem.

  3. #3
    Registered User
    Join Date
    01-22-2014
    Location
    Colchester, England
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Run-time error '438'

    yes the VBA module is password protected. I need everything protected as it's going to be used by over 2000 employees and I don't want any forumulae or coding changed as it's for an expense claim form. Only certain cells are to be completed.

    If I take the VBA password off, I now get an error at line:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: Run-time error '438'

    Try this code:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Re: Run-time error '438'

    Quote Originally Posted by cralph78 View Post
    yes the VBA module is password protected. I need everything protected as it's going to be used by over 2000 employees and I don't want any forumulae or coding changed as it's for an expense claim form.
    Tip for ya: While you're developing and testing the solution....make sure you've got the module open, ie you've had to put the password in to view the code. Then, when you're testing you get the debug option....which, as you may have just noticed, makes it sooooo much easier to troubleshoot non working code.
    Last edited by swoop99; 01-31-2014 at 10:21 AM.

  6. #6
    Registered User
    Join Date
    01-22-2014
    Location
    Colchester, England
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Run-time error '438'

    Thanks for the tip Swoop99 - that makes sense!

    & Thanks for the coding Gerard - works perfectly now.


+ 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. Cannot Publish Excel Pivot Chart - Run Time Error
    By crisb184 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2013, 07:04 AM
  2. [SOLVED] Error " Run-time error '1004': application defined or object defined error
    By lengwer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2013, 07:26 AM
  3. Replies: 7
    Last Post: 05-15-2013, 09:02 AM
  4. run-time error ;2147023179 (800706b5) time automation error interface unknown
    By karthik72 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2012, 09:31 AM
  5. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM

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