Hello everyone,
I've got something that may or may not be easy, I just don't know how to even begin attempting the code. I'm making an Excel spreadsheet that makes a batch file for a user based on dropdown boxes. Long story short, some dropdown boxes give the option to open specific websites in a new browser window. These websites allow login credentials in the URL so I have the macro asking for the username and password and then it puts the information in the URL, which it then puts into the batch file.
The problem: Batch files and & signs don't get along, at least with what I need to do. I can put a ^ symbol in front of the & symbols in the URLs that I can see to fix them, however if a user has a password with an & symbol, that will cause the batch file to ignore that part of the website.
The solution (at least the only one I can think of based on my research): Somehow make Excel substitute any & signs in a user's input in an inputbox with ^& before it prints it to the batch file.
Is this possible? If so, how do I do it?
Bookmarks