On Sun, 3 Jun 2007 02:24:25 +0200, "moon"
<(E-Mail Removed)> wrote:
>
><Barney Fyfe> schreef in bericht
>news:(E-Mail Removed)...
>> On Sun, 3 Jun 2007 00:02:25 +0200, "moon"
>> <(E-Mail Removed)> wrote:
>
>> Moon thank you that worked like a champ. I'm VB illiterate but if I
>> wanted to perform a replace, how would I do that? Example, say every
>> time a comma is typed, it automatically gets changed to a tilde (~).
>>
>> Thanks!
>
>
>Things change a little bit then. Let's see if the next one also will work:
>
>Private Sub Worksheet_Change(ByVal Target As Range)
> Dim enteredValue As String
> Dim newValue As String
> Dim c, l As Integer
> enteredValue = Target.Value
> If InStr(1, enteredValue, Chr(44), vbTextCompare) > 0 Then
> l = Len(enteredValue)
> For c = 1 To l Step 1
> If Mid(enteredValue, c, 1) = Chr(44) Then
> newValue = newValue & Chr(126)
> Else
> newValue = newValue & Mid(enteredValue, c, 1)
> End If
> Next c
> Target.Value = newValue
> End If
>End Sub
>
>
Worked exactly as desired. The last question I have is about security.
If the user opens the file and the macros are disabled, what options
do I have? Can I self sign it? If so, how do I lock down your code so
that it cannot be changed?
I appologize for taxing you with all of this but this is scope creep
for me