Run-time error 438

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone tell me why this line has all of a sudden started produceing this
error, first tests worked fine, then the error at the bottom of this post
started.

Dim fs As Object
Set fs = CreateObject("Scripting.FileSystemObject")
Sheets("TIMESHEET").CMDBTN.Visible = fs.FileExists("C:\Program
Files\Hummingbird\DM Extensions\Interceptor.exe")

Run-time error 438
object doesn't support this property or method
 
To make your life worse...

Your code worked ok for me in xl2002.

You may want to try it in a new workbook/worksheet and see if it works there.

Then maybe you can compare the surrounding code to see if there's a problem.

===
Any chance you renamed the CMDBTN to something else--or even deleted it??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top