file name

  • Thread starter Thread starter kev carter
  • Start date Start date
K

kev carter

hi
i have a workbook that allows the user to save a copy of the workbook by
entering the name as text
the problem is if the user enter a character such as [],:,/,* it crashes
the program
is there anyway i can trap this and stop the spreadsheet crashing

thanks in advance

kevin
 
Frank
what macro?

Frank Kabel said:
Hi Kevin
you may pass the relevant code of this macro

--
Regards
Frank Kabel
Frankfurt, Germany


kev said:
hi
i have a workbook that allows the user to save a copy of the workbook
by entering the name as text
the problem is if the user enter a character such as [],:,/,* it
crashes the program
is there anyway i can trap this and stop the spreadsheet crashing

thanks in advance

kevin
 
Hi
I thought you had a macro for saving the workbook. So the user enteres
these characters in the build-in dialog?
If yes what crashes exactly?

--
Regards
Frank Kabel
Frankfurt, Germany


kev said:
Frank
what macro?

Frank Kabel said:
Hi Kevin
you may pass the relevant code of this macro

--
Regards
Frank Kabel
Frankfurt, Germany


kev said:
hi
i have a workbook that allows the user to save a copy of the
workbook by entering the name as text
the problem is if the user enter a character such as [],:,/,* it
crashes the program
is there anyway i can trap this and stop the spreadsheet crashing

thanks in advance

kevin
 
Frank
the user can type a name into a cell, the value of the cell is the name the
file will be saved as.
if the name contains any of the chars previously mensioned windows reads it
as a path or command
Frank Kabel said:
Hi
I thought you had a macro for saving the workbook. So the user enteres
these characters in the build-in dialog?
If yes what crashes exactly?

--
Regards
Frank Kabel
Frankfurt, Germany


kev said:
Frank
what macro?

Frank Kabel said:
Hi Kevin
you may pass the relevant code of this macro

--
Regards
Frank Kabel
Frankfurt, Germany


kev carter wrote:
hi
i have a workbook that allows the user to save a copy of the
workbook by entering the name as text
the problem is if the user enter a character such as [],:,/,* it
crashes the program
is there anyway i can trap this and stop the spreadsheet crashing

thanks in advance

kevin
 

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