Question about the @ sign in a Replace vba

Ezguy4u

Active Member
Joined
Feb 10, 2010
Messages
336
Office Version
  1. 365
Platform
  1. Windows
I have a question about the vba program below. Now I have boiled down another program to the one below. The input and output is also below and all it does is joins the letters in column A to the numbers in the array. What I would like to focus in on is that @ sign and how it works. If possible a link to even more information about how this @ sign is working. Any way I appreciate any help and thanks for your time.

VBA Code:
Sub Join1()
With Range("B1:D3")
    .Value = Evaluate(Replace("IF(@="""","""",A1:A3 &@)", "@", .Address))
End With
End Sub

08 20-09-21 join cells Rick work 4.xlsm
ABCD
1A123
2B45
3C67
Join


08 20-09-21 join cells Rick work 4.xlsm
ABCD
1AA1A2A3
2BB4B5
3CC6C7
Join
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
The @ sign is just a place holder & could be anything that does not appear within the formula.
It is simply replaced with .Address by the Replace function.
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,148
Members
449,066
Latest member
Andyg666

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top