Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Copy and paste selections and formatting to new worksheet

i have a large range of options on one worksheet. From these options, i would like to use a method of selection like a check box or cell containing qty to note the options to be copied to the next sheet (a quote). IE: options are 1-10, a person selects 1,4,6 and 9....i want these to appear on the next worksheet. I was using simply =IF(A!E1,A!B1," ") but left with blank cells inbetween those that werent selected. Also, the formatting was left behind. Is there any easier way to accomplish this or can i overcome the formatting problem?

Im a novice so any help is really appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy and paste selections and formatting to new worksheet

Assume you have a quantity column (column D) on sheet1, list starts in D3,
and you enter data starting in A5 on sheet 2

Sub copydata()
Dim rw as Long, cell as Range
rw = 5
For each cell in Worksheets("Sheet1").Range("D3:D12")
if cell.Value 0 then
cell.parent.Cells(cell.row,1).Resize(1,11).Copy _
Destination:=Worksheets("Quote").cells(rw,1)
rw = rw + 1
end if
Next
End Sub


copies column A to K of row with quantity 0 to sheet quote.
--
Regards,
Tom Ogilvy


gavmer wrote in message
...
i have a large range of options on one worksheet. From these options, i

would like to use a method of selection like a check box or cell containing
qty to note the options to be copied to the next sheet (a quote). IE:
options are 1-10, a person selects 1,4,6 and 9....i want these to appear on
the next worksheet. I was using simply =IF(A!E1,A!B1," ") but left with
blank cells inbetween those that werent selected. Also, the formatting was
left behind. Is there any easier way to accomplish this or can i overcome
the formatting problem??

Im a novice so any help is really 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
copy & paste worksheet with print settings into new worksheet Larry Ohio Excel Discussion (Misc queries) 1 December 23rd 09 05:17 PM
How do I copy and paste a worksheet and maintain all formatting? jana Excel Worksheet Functions 2 September 19th 06 10:08 PM
copy and paste with multiple selections in Microsoft Excel capnhud Excel Discussion (Misc queries) 10 September 6th 06 08:58 PM
copy and paste with multiple selections in Microsoft Excel capnhud Excel Discussion (Misc queries) 1 September 5th 06 01:13 PM
excel 97: copy and paste values from one worksheet to another worksheet JMCN Excel Programming 2 September 23rd 03 01:32 PM


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