Copy info to another sheet via a button

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
771
Office Version
  1. 365
Platform
  1. Windows
Good Evening,

I have been using userforms to complete questions then transfering them to another sheet using an array referenceing a name ( ie textbox2.value, combobox3.value etc..)

How do i do this using cell references (ie (3, 3) "C3"

I have 29 cells i need to move to another sheet depending on whos name is in (4, 4) D4. All the sheets are in the same names that can be used in the drop down, so i need it to recognise the name and move to that sheet.

Normally on a userform i would use the following

Code:
Set ws = wbFVYData.Worksheets(CmbCSM.Value)
        ws.AutoFilterMode = False
        ws.Cells(Rows.Count, "A").End(xlUp).Offset(1).Resize(, 19).Value = Array(txtdate.Value, _
                                                                                    TextBox18.Value, CmbCSM.Value, TextBox1.Value, TextBox2.Value, TextBox6.Value, TextBox5.Value, _
                                                                                    TextBox3.Value, TextBox4.Value, TextBox7.Value, TextBox8.Value, TextBox14.Value, TextBox15.Value, _
                                                                                    TextBox9.Value, JEN.Value, TextBox12.Value, ComboBox4.Value, TextBox17.Value, CBoxAdd.Value)
 
        With wbFVYData.Sheets("Sheet1")
            LastRow = .Cells(.Rows.Count, "E").End(xlUp).Row
            Set rngFnd = .Range("B4:B" & LastRow).Find(What:=Me.TextBox18.Value)
        End With
 
wbFVYData.Close True
           
        MsgBox "Your Car Park has been completed"
         Unload Me

How do i change the .values etc. to be individual cell references as well as changing the CmbCSM.Value

Many Thanks
Gavin
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

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