Customer Tracker

kc2equ

Board Regular
Joined
Feb 22, 2005
Messages
55
I currently work at a retail store. I have a list of contacts that I am tring to make a list of. I currently have a form with about 22 variables ( name, address, phone #, sales info, ect….)

I want to have the a section at the top of the sheet and have a macro that inserts the information into a row lower on the page. Then I want to have the section on the top clear so and when you enter new information it inserts it into the next lower row on the sheet. Can anyone help me out with this macro?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
kc2equ

VBA is not my strong point but I have had a go at this. Others may well point out problems with, or simplifications to, my code. However, in the small amount of testing that I have done it seems to do what I think you are asking.

Row 2 (green cells) is for data entry. the headings are repeated again at row 5. The user enters what data they have and then click a Command Button to complete the process. The data is transferred to the next available blank row below row 5 and row 2 is cleared ready for the next data entry.

The code associated with the Command Button is:<font face=Courier New><SPAN style="color:#00007F">Private</SPAN><SPAN style="color:#00007F">Sub</SPAN> CommandButton1_Click()
    ScreenUpdating =<SPAN style="color:#00007F">False</SPAN>
    Range("A2:D2").Select
    Selection.Cut
    ActiveSheet.Range("A65536").End(xlUp).Offset(1, 0).Select
    ActiveSheet.Paste
    Range("A2").Select
    ScreenUpdating =<SPAN style="color:#00007F">True</SPAN><SPAN style="color:#00007F">End</SPAN><SPAN style="color:#00007F">Sub</SPAN></FONT>
Mr Excel.xls
ABCD
1NameAddressPhoneAge
2
3
4
5NameAddressPhoneAge
6Fred12 Smith St123428
7Sam11 Smith St123548
8Sue678 Rodeo Drive12
9
Sheet1
 
Upvote 0

Forum statistics

Threads
1,203,631
Messages
6,056,432
Members
444,864
Latest member
Thundama

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