Please Need help!!!

Alpacino

Well-known Member
Joined
Mar 16, 2011
Messages
511
Hi guys really struggling with this one.

I have a cell (B12) in Sheet1 with a formula =Address(match(A8,A1:A4,0),match(C8,A1:E1,0))

I like to use B12 as a cell reference for a empty table

I like to copy a value from B9 into the cell reference that is displayed in B12.

Could anyone help with VBA code please.

The table is in a different sheet Sheet2
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try

Code:
Sub Cpy()
Range("B9").Copy Destination:=Sheets("Sheet2").Range(Range("B12").Value)
End Sub
 
Upvote 0
Code:
Sub Macro1()
    With Sheets("Sheet1")
        Sheets("Sheet2").Range(.Range("B12").Value).Value = .Range("B9").Value
    End With
End Sub
 
Upvote 0
With a button on the userform

Code:
Private Sub CommandButton1_Click()
With Sheets("Sheet1")
    .Range("B9").Copy Destination:=Sheets("Sheet2").Range(.Range("B12").Value)
End With
End Sub
 
Upvote 0
Thanks

Can a userform be used to input figures onto a sheet. Is this possible? I also like to use 3 comboboxes in userform.
E.g
Training module :______
Dept:______
Staff name :______
Date : ______

The last one (date) o would like an input box which enters the figure into a different sheet depending on values entered in comboboxes

E.g
Training module: fire
Dept: warehouse
Staff name bill smith
Date 29/04/11

So on sheet(4) the figure would be put in
Name column bill smith
Training column fire
Date training completed 29/04/11
 
Upvote 0
Thanks for that.
One last question can u link combobox together
For example if combobox1 has a list of depts. If I select a certain Dept combobox 2 will only show names from that Dept ???
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

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