Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform Command Button not available until another command buttonhas been used [email protected] Excel Programming 4 September 4th 08 04:35 PM
Deselect Command Button by Selecting another Command Button gmcnaugh[_2_] Excel Programming 3 September 2nd 08 05:59 PM
Form Button vs Command Button Gizmo Excel Programming 2 April 8th 08 08:16 PM
Wanting to Create A Command Button Command bumper338 Excel Programming 3 May 7th 07 06:53 PM
VB's Command Button vs Form's Command Button Ronald Dodge Excel Programming 3 May 24th 06 02:23 PM


All times are GMT +1. The time now is 06:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"