Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default userform macro button problemo

ok im making an invoice book for school. AS project.

i hav 2 workbooks but only using one at the moment.
i have a spreadsheet with headings such as Customer name,
no, address etc and product code price quatitiy and
total. The customer details are on one userform and the
product information on the 2nd userform.

If the customer wants to order more than one product they
can click nextand a msg box appears saying "Do you want
to order another product?" "YES" or "NO". if the user
clicks "YES" the 2nd userform appears again and different
product details can be entered.
When finished the details are entered on to the top line
on a spreadsheet. Everytime u have a new customer their
details are entered at the top.

MY PROBLEM...
At the moment if a customer orders more than one product
only the last one they order is recorded.

if the customer orders more than one product I want the
customer details to be entered again onto the second line
of the spreadsheet by the click of a button.
Do u know how I can do this?

Your help will be greatly appreciated!!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default userform macro button problemo

Try the following, it will duplicate all of row 1

Rows("1:1").Copy
Rows("1:1").Insert shift:=xlDown
Application.CutCopyMode = False

Cheers
Nigel

"Aashi" wrote in message
...
ok im making an invoice book for school. AS project.

i hav 2 workbooks but only using one at the moment.
i have a spreadsheet with headings such as Customer name,
no, address etc and product code price quatitiy and
total. The customer details are on one userform and the
product information on the 2nd userform.

If the customer wants to order more than one product they
can click nextand a msg box appears saying "Do you want
to order another product?" "YES" or "NO". if the user
clicks "YES" the 2nd userform appears again and different
product details can be entered.
When finished the details are entered on to the top line
on a spreadsheet. Everytime u have a new customer their
details are entered at the top.

MY PROBLEM...
At the moment if a customer orders more than one product
only the last one they order is recorded.

if the customer orders more than one product I want the
customer details to be entered again onto the second line
of the spreadsheet by the click of a button.
Do u know how I can do this?

Your help will be greatly appreciated!!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default userform macro button problemo

Thanks but where do i enter this


-----Original Message-----
Try the following, it will duplicate all of row 1

Rows("1:1").Copy
Rows("1:1").Insert shift:=xlDown
Application.CutCopyMode = False

Cheers
Nigel

"Aashi" wrote in

message
...
ok im making an invoice book for school. AS project.

i hav 2 workbooks but only using one at the moment.
i have a spreadsheet with headings such as Customer

name,
no, address etc and product code price quatitiy and
total. The customer details are on one userform and the
product information on the 2nd userform.

If the customer wants to order more than one product

they
can click nextand a msg box appears saying "Do you want
to order another product?" "YES" or "NO". if the user
clicks "YES" the 2nd userform appears again and

different
product details can be entered.
When finished the details are entered on to the top

line
on a spreadsheet. Everytime u have a new customer

their
details are entered at the top.

MY PROBLEM...
At the moment if a customer orders more than one

product
only the last one they order is recorded.

if the customer orders more than one product I want

the
customer details to be entered again onto the second

line
of the spreadsheet by the click of a button.
Do u know how I can do this?

Your help will be greatly appreciated!!



.

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
How to get userform Cancel button to invoke Exit Sub in calling macro? Craig Remillard New Users to Excel 1 November 19th 09 03:55 AM
Use the X button on a userform Greg B Excel Discussion (Misc queries) 3 May 16th 05 09:19 AM
how to run macro in userform button khurram saddique Excel Discussion (Misc queries) 2 March 4th 05 12:47 PM
UserForm Problemo Priya[_2_] Excel Programming 0 April 23rd 04 10:15 PM
UserForm Button Help meflorence Excel Programming 2 March 2nd 04 05:35 PM


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