Use cell address text to determine paste destination

jgaska

New Member
Joined
Jun 18, 2011
Messages
2
Hello All.

I have been trying for two days to figure this out so I've finally come to ask for help. I have two spreadsheets, one with input information and one on which information will be output. On the input spreadsheet, it is set up so that, using the address function, I have a text string in cell A1 stating my desired output cell destination (i.e. $M$13). I would like to make a button that, when I click it, enters a formula (for the sake of this query, lets assume it will be "=2*2") in the desired cell (M13) on the output sheet. The button would be on the input sheet. Any help is greatly appreciated. Thank you.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try like this with a button from the Controls toolbar (ActiveX control)

Code:
Private Sub CommandButton1_Click()
Sheets("Sheet2").Range(Range("A1").Value).Formula = "=2*2"
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,896
Members
452,948
Latest member
Dupuhini

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