Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default code and quantity log


i need make a user form including 2 input box code and qty
cmd button saves code and qty to other sheet in own rows
is it possible anyway

--
Tuokk
-----------------------------------------------------------------------
Tuokki's Profile: http://www.excelforum.com/member.php...fo&userid=3094
View this thread: http://www.excelforum.com/showthread.php?threadid=50614

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default code and quantity log

Hi,
Here is a very basic example: a Userform with two textboxes and a
command button. There is no error checking e.g. is the quantity numeric.

Data is written columns A and B starting in row 2; row 1 assumed to be
header row.

HTH

Private Sub CommandButton1_Click()

Dim ws1 As Worksheet

Set ws1 = Worksheets("Sheet1")

With ws1
nextrow = .Cells(Rows.Count, "A").End(xlUp).Row + 1 ' Next row in column A
.Cells(nextrow, 1) = TextBox1.Value ' Code
.Cells(nextrow, 2) = TextBox2.Value ' Qty
End With

End Sub


"Tuokki" wrote:


i need make a user form including 2 input box code and qty
cmd button saves code and qty to other sheet in own rows
is it possible anyway ?


--
Tuokki
------------------------------------------------------------------------
Tuokki's Profile: http://www.excelforum.com/member.php...o&userid=30944
View this thread: http://www.excelforum.com/showthread...hreadid=506146


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
add percent plus quantity israel New Users to Excel 5 January 1st 09 12:57 AM
Need a formula to increase quantity of one cell until the quantity ofanother is exceeded rudyeb Excel Discussion (Misc queries) 1 October 24th 08 03:34 PM
Formula help with ordering quantity Angela Excel Worksheet Functions 8 December 7th 06 04:35 PM
Dates and Quantity sort foilprint0 Excel Worksheet Functions 6 February 2nd 06 08:26 AM
Updating inventory quantity kuansheng Excel Worksheet Functions 3 February 2nd 06 01:48 AM


All times are GMT +1. The time now is 11:10 PM.

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

About Us

"It's about Microsoft Excel"