Simple data entry form above the targeted columns. Help!

mrmikepan

New Member
Joined
Apr 4, 2013
Messages
7
[h=2]
icon5.png
[/h]

So... I have a table with 4 columns, these are the headers:
Date / Item Name / Purchase From / Purchase Price
Table Starts @ B3, Headers C3 / D3 / E3 / F3 (Same order as above)
I want to be able to type in the data in C4 / D4 / E3 / F3, press an 'Enter' Button Near G4.
It will automatically place the data in the next open row for each column. "Adding it to the List"

Seems simple, but I have no clue... If someone could show me what to do I would be so appreciative and hopefully I'll be able to modify the efficiency of how I want to enter the data from there.

Thank You!

PS: Still learning so explanations of the code are soo welcome

Alternative explanation of what I'm trying to do:

I have 4 cells that I want to enter data into C4,D4,E4,F4.
Underneath those 4 cells its suppose to be a list of what I've entered.
I want to type data into C4,D4,E4,F4... Push a developer button labeled "Enter" and then have that data be put onto the bottom of the list, clearing C4,D4,E4, and F4 for the next set of data to be added to the list.

To do this it must go down the list and find the first blank row for the data from (C4,D4,E4,F4) to be placed, When the developer button labeled "Enter" is pressed. At least I think that's the easiest way to accomplish this? I don't know VB code.​
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try this in the sheet module of Inventory Value.
The old code was moving FourBy from Range("C7:F7") to Range("C8:F8").
This seems to work fine for me on your Drop Box workbook.

Code:
Option Explicit
Private Declare Function sndPlaySound32 _
    Lib "winmm.dll" _
    Alias "sndPlaySoundA" ( _
        ByVal lpszSoundName As String, _
        ByVal uFlags As Long) As Long

Sub CopyFourByCut()
'By Claus
If WorksheetFunction.CountA(Range("C7:F7")) = 0 Then
    MsgBox "Nothing to copy!"
    Exit Sub
 Else
   Rows(8).Insert shift:=xlDown
   Range("C7:F7").Cut _
      Range("C8:F8")
      sndPlaySound32 "C:\Windows\Media\Chimes.wav", 0&
   Range("C7").Select
End If

End Sub

Regards,
Howard
 
Upvote 0
Worked perfectly! Ty for all your help!

Try this in the sheet module of Inventory Value.
The old code was moving FourBy from Range("C7:F7") to Range("C8:F8").
This seems to work fine for me on your Drop Box workbook.

Code:
Option Explicit
Private Declare Function sndPlaySound32 _
    Lib "winmm.dll" _
    Alias "sndPlaySoundA" ( _
        ByVal lpszSoundName As String, _
        ByVal uFlags As Long) As Long

Sub CopyFourByCut()
'By Claus
If WorksheetFunction.CountA(Range("C7:F7")) = 0 Then
    MsgBox "Nothing to copy!"
    Exit Sub
 Else
   Rows(8).Insert shift:=xlDown
   Range("C7:F7").Cut _
      Range("C8:F8")
      sndPlaySound32 "C:\Windows\Media\Chimes.wav", 0&
   Range("C7").Select
End If

End Sub

Regards,
Howard
 
Upvote 0

Forum statistics

Threads
1,215,698
Messages
6,126,270
Members
449,308
Latest member
VerifiedBleachersAttendee

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