Copy data from another column (Only for Visible cells)

Aswinraj

Board Regular
Joined
Dec 10, 2015
Messages
65
Hello Guys,

I Need to Map the data from one column to another column. Example: Consider there are two columns A and B where i need to Map the data present in B to A.
I took the ColumnName (Column B) as ColLtr_Customer and Current row in Column A as currrow and entered the formula as show below but i am getting the result as =@'B576' and correct result should be =B576

Note: I will copy the formula till last available column only for visible cells ( this formula applied only to visible cells)


VBA Code:
ActiveCell.FormulaR1C1 = "=" & ColLtr_Customer & currrow
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I assume that you are using 365...
The @ symbol shouldn't stop your formula running is it giving an incorrect result?

For information on the @ symbol (Implicit Intersection Operator) see the link below.
 
Upvote 0
That was stupid of me not spotting that you were using .FormulaR1C1 for a formula in A1 style :rolleyes:
Happy that you have it sorted (btw you can use .Formula rather than .Value as well).
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,688
Members
448,978
Latest member
rrauni

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