Hello - I have 2 burning questions about these routines
This SAVE_FILE subroutine here is supposed to save a workbook to a specific directory with a very specific name -- based on the worksheet's data.
To create the name I'm cleaning the entry using another function... i want to remove anything that is not a Letter (A,a,B,b...Z,z) number (0,1,2,...,9) or allowed other characters ("#", "_", "-").
Question: Is there a simple statement within excel VBA to handle this -- seems like there should be a statement like:
IF mid(string,index,1) IS Alphanumeric OR IN("_",...) THEN
As you can see below i'm checking each member of the name string against an array i created in another private function....just seems like a long way around the barn so to speak.
(most of the sub is omitted...the rest is in the attachment for all to view)
This is the check-function![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Bookmarks