Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying Cells from Sheet2 to sheet1

I am new to Excel and was wondering how to perform the simple move.

I have products on sheet2. About 25 of them in the format of

Product Name1, Price, Quantity
Product Name2, Price, Quantity
........
ProductName25, Price, Quantity

The Product Names are filled in and the price is filled in. What I would
like to do is enter a quantity if I want the product. Once I finish
entering in quantities, when i click on Sheet1, I would like the rows that
have a Quantity to be placed on Sheet 1.

How can I do this?

Thanks,

Gary


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default Copying Cells from Sheet2 to sheet1

add a standard code module and paste this code:

Sub CopyData()
Sheets("Sheet2").Cells.Clear
Range("A1").AutoFilter Field:=3, Criteria1:="<"
Range("A1").CurrentRegion.Copy
Sheets("Sheet2").Range("A1").PasteSpecial xlAll
Range("A1:C1").AutoFilter
End Sub

Basically it turns on the auto filter, selects non-blanks
in column 3, copies the visible results to sheet2 then
turns off the autofilter

a little crude but it works! - assumes your table is in
three columns from cell A1 of course

HTH

Patrick Molloy
Microsoft Excel MVP

-----Original Message-----
I am new to Excel and was wondering how to perform the

simple move.

I have products on sheet2. About 25 of them in the

format of

Product Name1, Price, Quantity
Product Name2, Price, Quantity
........
ProductName25, Price, Quantity

The Product Names are filled in and the price is filled

in. What I would
like to do is enter a quantity if I want the product.

Once I finish
entering in quantities, when i click on Sheet1, I would

like the rows that
have a Quantity to be placed on Sheet 1.

How can I do this?

Thanks,

Gary


.

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
Link All cells of Sheet1 to All Cells of Sheet2 Irshad Alam Links and Linking in Excel 1 January 10th 10 08:37 AM
Populate growing range of cells from Sheet1 to Sheet2 Brad New Users to Excel 10 July 23rd 09 08:32 AM
copy data from sheet2 to sheet1 when sheet2 has variable # of rows Anne Excel Discussion (Misc queries) 6 February 27th 09 09:48 PM
copying data from sheet1 to sheet2 Rookie Excel Worksheet Functions 3 September 7th 06 12:09 PM
Checking the Cells in Sheet1 with Cells in Sheet2 and replace Checking the cells in Sheet1 with Sheet2 Excel Worksheet Functions 1 August 19th 06 09:29 AM


All times are GMT +1. The time now is 05:37 AM.

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"