Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VB Command Button
I have a table in one worksheet that requires user input. To guard against
user error, I put the table that will be doing the calculations in a separate tab. I want to put a button in that once the table has been completed the user can click the button and copy their input to the calculating table. What kind of a code do I need in VB to do this? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VB Command Button
Say we have two tabs:
input calc and the area in input is A1 thru C3 and the area in calc is D2 thru F4: Sub copy_it() Set r1 = Sheets("input").Range("A1:D3") Set r2 = Sheets("calc").Range("D2") r1.Copy r2 End Sub -- Gary''s Student - gsnu200804 "WitKnee" wrote: I have a table in one worksheet that requires user input. To guard against user error, I put the table that will be doing the calculations in a separate tab. I want to put a button in that once the table has been completed the user can click the button and copy their input to the calculating table. What kind of a code do I need in VB to do this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Userform Command Button not available until another command buttonhas been used | Excel Programming | |||
Deselect Command Button by Selecting another Command Button | Excel Programming | |||
Form Button vs Command Button | Excel Programming | |||
Wanting to Create A Command Button Command | Excel Programming | |||
VB's Command Button vs Form's Command Button | Excel Programming |