Disable Command Button when File name begins with Customer?

  • Thread starter Thread starter RPIJG
  • Start date Start date
R

RPIJG

I want to put something into the workbook that disables the comman
button when the filename begins with the word customer...can I do this
 
Yes. At the start of your code for the button (which I assume finds a file)
add the following...

If Left('filename', 8) = "Customer" then Exit Sub

HTH, Greg
 

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