LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default How can I summarize what is in more cells in a single one

Hello,

So I have a table with some Lines and some Columns. I am filling this
Lines and Columns with the help of a form that is opening when I am
pressing a Button. Every time I press the Button "ADD" on the Form new
lines with the info from the form are inserted in the table. The
Header Columns of the Table is: Pizza, Type, extra topping, size,
Sauce. Price. What I want to do is a summarize on sheet 2. So that I
will have a copy of this table from sheet1 with more columns in just 2
columns on sheet 2. So "Pizza, Type, extra topping, size, Sauce"
should be copied into the first Column on sheet 2 and the Price should
be copied in the second column in the right of column 1 on sheet2. The
code should automatically check all the lines of the table and copy
all to sheet2 not only the first line of the table.

Example:

Column1 Column2 Column3 Column4 Column5 Column6
Pizza, ----- Type,-- extra topping, size, Sauce ---- price

quatro ----- stagioni --- cheese ---- big ---- no sauce ---- 20$


Should get on sheet 2:

--------------Column1 ----------------------------------- Column 2

"quatro big + stagioni + big + no sauce" ------ 20$



The current code is made like this for the form:

Private Sub cmdADD_Click()
ActiveWorkbook.Sheets("Sheet1").Activate
Range("A3").Select
Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(1, 0).Select
End If
Loop Until IsEmpty(ActiveCell) = True
ActiveCell.Value = cboPizza.Value
ActiveCell.Offset(0, 1) = txtType.Value
ActiveCell.Offset(0, 2) = cboExtratopping.Value

etc etc....

I would like to have something like this with a referential cell like
A3 on Sheet2. like I have the A3 cell for the first sheet.

Thank you very much
 
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
Autofill of single cells Dannie Excel Discussion (Misc queries) 2 October 20th 08 07:24 AM
split single cells Idaho Excel Worksheet Functions 2 September 5th 08 10:53 PM
Summarize cells in another workbook streetspeedin Excel Discussion (Misc queries) 0 April 14th 06 09:34 PM
Copy column range of "single word" cells with spaces to a single c nastech Excel Discussion (Misc queries) 3 February 15th 06 05:04 PM
Pasting single cells from Word to multiple cells in Excel ASBiss Excel Worksheet Functions 1 February 15th 05 11:47 AM


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