Skip to main content
Commonmark migration
Source Link

###Excel VBA, 110 bytes

Excel VBA, 110 bytes

This is my first entry to CodeGolf so I hope this is ok.

You enter the input word in A1 and then the letters to be replaced in B1 and the resulting word is displayed in a message box.

w = Cells(1, 1)
l = Cells(2, 1)
For i = 1 To Len(w)
x = Left(w, 1)
R = R + x
If InStr(l, x) > 0 Then
R = R + x
End If
w = Right(w, Len(w) - 1)
Next
MsgBox R

###Excel VBA, 110 bytes

This is my first entry to CodeGolf so I hope this is ok.

You enter the input word in A1 and then the letters to be replaced in B1 and the resulting word is displayed in a message box.

w = Cells(1, 1)
l = Cells(2, 1)
For i = 1 To Len(w)
x = Left(w, 1)
R = R + x
If InStr(l, x) > 0 Then
R = R + x
End If
w = Right(w, Len(w) - 1)
Next
MsgBox R

Excel VBA, 110 bytes

This is my first entry to CodeGolf so I hope this is ok.

You enter the input word in A1 and then the letters to be replaced in B1 and the resulting word is displayed in a message box.

w = Cells(1, 1)
l = Cells(2, 1)
For i = 1 To Len(w)
x = Left(w, 1)
R = R + x
If InStr(l, x) > 0 Then
R = R + x
End If
w = Right(w, Len(w) - 1)
Next
MsgBox R
added 2 characters in body; deleted 34 characters in body
Source Link

###Excel VBA, 110 bytes

This is my first entry to CodeGolf so I hope this is ok.

You enter the input word in A1 and then the letters to be replaced in B1 and the resulting word is displayed in a message box.

w = Cells(1, 1)
l = Cells(2, 1)
q = Len(w)
For i = 1 To qLen(w)
    x = Left(w, 1)
    R = R + x
    If InStr(l, x) > 0 Then
        R = R + x
    End If
    w = Right(w, qLen(w) - 1)
Next
MsgBox R

###Excel VBA, 110 bytes

This is my first entry to CodeGolf so I hope this is ok.

You enter the input word in A1 and then the letters to be replaced in B1 and the resulting word is displayed in a message box.

w = Cells(1, 1)
l = Cells(2, 1)
q = Len(w)
For i = 1 To q
    x = Left(w, 1)
    R = R + x
    If InStr(l, x) > 0 Then
        R = R + x
    End If
    w = Right(w, q - 1)
Next
MsgBox R

###Excel VBA, 110 bytes

This is my first entry to CodeGolf so I hope this is ok.

You enter the input word in A1 and then the letters to be replaced in B1 and the resulting word is displayed in a message box.

w = Cells(1, 1)
l = Cells(2, 1)
For i = 1 To Len(w)
x = Left(w, 1)
R = R + x
If InStr(l, x) > 0 Then
R = R + x
End If
w = Right(w, Len(w) - 1)
Next
MsgBox R
Rollback to Revision 2
Source Link

Excel VBA, 110 bytes
This ###Excel VBA, 110 bytes

This is my first entry to CodeGolf so I hope this is ok. You

You enter the input word in A1 and then the letters to be replaced in B1 and the resulting word is displayed in a message box.

w = Cells(1, 1)
l = Cells(2, 1)
q = Len(w)
For i = 1 To q
    x = Left(w, 1)
    R = R + x
    If InStr(l, x) > 0 Then
        R = R + x
    End If
    w = Right(w, q - 1)
Next
MsgBox R

Excel VBA, 110 bytes
This is my first entry to CodeGolf so I hope this is ok. You enter the input word in A1 and then the letters to be replaced in B1 and the resulting word is displayed in a message box.

w = Cells(1, 1)
l = Cells(2, 1)
q = Len(w)
For i = 1 To q
    x = Left(w, 1)
    R = R + x
    If InStr(l, x) > 0 Then
        R = R + x
    End If
    w = Right(w, q - 1)
Next
MsgBox R

###Excel VBA, 110 bytes

This is my first entry to CodeGolf so I hope this is ok.

You enter the input word in A1 and then the letters to be replaced in B1 and the resulting word is displayed in a message box.

w = Cells(1, 1)
l = Cells(2, 1)
q = Len(w)
For i = 1 To q
    x = Left(w, 1)
    R = R + x
    If InStr(l, x) > 0 Then
        R = R + x
    End If
    w = Right(w, q - 1)
Next
MsgBox R
Rollback to Revision 1
Source Link
Loading
Formatting: (added the new line OP expected) and made the title a header
Source Link
Loading
Source Link
Loading