Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Input Box for data-entry

Here is code for the first part - you can work out the rest yourself!

Sub EnterData()
Dim rng As Range
Dim cell As Range
Set rng = ActiveSheet.UsedRange.Find("Physical", LookIn:=xlValues)
Set rng = rng.Resize(rng.CurrentRegion.Rows.Count - 2).Offset(1, 0)
rng.Value = 0
For Each cell In rng.Cells
rng.Select
cell.Value = InputBox("Enter quantity for code " & cell.Offset(0,
-5), _
"Enter Physical Quantities", 0)
Next cell

End Sub

"Paul" wrote:

Hi there,
Help please, this is driving me mad!
This is a simplified version:

A B C D E F G
R1 Code Open In Out Book Physical Diff
R3 1001 100 50 75 125 130 5
R4 1011 50 0 0 50 50 0
R5 1017 0 100 50 50 50 0
.....
R374 Total
All cols are formulas apart from "physical" and what I'm trying to get are
two bits of code that:
a) Zeros down the the Physical col from row 3 to the row above the Total
(the sheet grows/shrinks as items are added or deleted) and then pops up an
input box that asks "enter stock for Code ...." for every code (in order)

and
b) (This is for after the differences have been resolved) an Input box that
asks for the code and then the new Physical quantity.

Many Thanks

Paul

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
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing [email protected] Excel Discussion (Misc queries) 0 March 20th 08 12:45 PM
forcing entry in input box Papa Jonah Excel Programming 4 May 1st 07 06:51 AM
How can I have an input form to add a random no. to each input entry? saziz Excel Discussion (Misc queries) 2 January 25th 06 11:46 PM
Data entry once, input into two worksheets bpstuart Excel Discussion (Misc queries) 1 March 25th 05 10:49 PM
Trapping Data Input with Curser Keys or Entry Key Robert Cornwell Excel Programming 1 May 25th 04 02:36 AM


All times are GMT +1. The time now is 06:58 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"