The table below shows the actual text string copied into a string variable in the left column.
The right column shows what the pasted text will look like.
The variable b=5 was set first.
| strText = | Pasted Value |
|---|---|
| "a and b and c" | a and b and c |
| """a and b and c""" | "a and b and c" |
| "a and " & "b" & " and c" | a and b and c |
| "a and " & b & " and c" | a and 5 and c |
| "a and " & "" & b & "" & " and c" | a and 5 and c |
| "a and " & """ & b & """ & " and c" | a and " & b & " and c |
| "a and " & """b""" & " and c" | a and "b" and c |
| "a and " & """" & b & """" & " and c" | a and "5" and c |