Re: string manipulation help
Your post/code is confusing. You say you are looking for the ampersand, '&' character, yet
your code searches for the equals, '=' character. I assume you are trying to save
only the text up to, but not including, the "=" character. If so, it looks like jak2 does it.
By the way, this line
Dim cont, cont1, cont2 As String
may not do what you think it does. Only cont2 will be declared as String, while the
others will be Variants. Assuming you want them all to be strings, you need
Dim cont As String, cont1 As String, cont2 As String
Also you have declared jak & jak2 but your code uses jak1 & jak2.
Also, I'm not sure why you have cont and cont1, which appear to get the same content.
If your code compiles without error, you must not be using Option Explicit, which is highly
recommended in helping to find these types of errors. You can tell VB to always
put the Option Explicit declaration at the top of all new code modules if you select
Tools|Options|Editor and check Require Variable Declaration.