Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Find, Copy and change from row to column

This is getting the best of me, :(

I have S/S with multi worksheets with system and hardware layout. The
problem is it is all done from left to right. I need to find just the
system and write them top to bottum and which tab they were found on a
new worksheet.

So something like this:
1) create new worksheet called systems.
2) goto first worksheet
3) find first row with system in column A
4) copy rest of row (B-AA) to worksheet systems and paste top to bottom
in Column A
5) go back to first worksheet find next system, if not anymore go to
next worksheet.

Any suggestions?

Thanks,
Ron

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find, Copy and change from row to column

How would we know it is as system. Are the only entries in column A
systems?

On Error Resume Next
Worksheets.Add( After:=Worksheets(Worksheets.count)).Name = "System"
On Error goto 0
rw = 1
for each sh in Worksheets
if sh.Name < "System" then
set rng = sh.Columns(1).Specialcells(xlConstants)
for each cell in rng
cell.resize(1,27).copy Destination:=Worksheets("System").Cells(rw,1)
Next
end if
Next

--
Regards,
Tom Ogilvy

"ron_dallas" wrote in message
oups.com...
This is getting the best of me, :(

I have S/S with multi worksheets with system and hardware layout. The
problem is it is all done from left to right. I need to find just the
system and write them top to bottum and which tab they were found on a
new worksheet.

So something like this:
1) create new worksheet called systems.
2) goto first worksheet
3) find first row with system in column A
4) copy rest of row (B-AA) to worksheet systems and paste top to bottom
in Column A
5) go back to first worksheet find next system, if not anymore go to
next worksheet.

Any suggestions?

Thanks,
Ron



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Find, Copy and change from row to column

Looks like it goes and finds them, but puts everything in A1

Let me change it and say copy what every it find to sheet systems, so
find a line, paste it, find next line paste it on the next line. Would
that be easier?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find, Copy and change from row to column

Just left out the rw increment

On Error Resume Next
Worksheets.Add( After:=Worksheets(Worksheets.count)).Name = "System"
On Error goto 0
rw = 1
for each sh in Worksheets
if sh.Name < "System" then
set rng = sh.Columns(1).Specialcells(xlConstants)
for each cell in rng
cell.resize(1,27).copy Destination:=Worksheets("System").Cells(rw,1)
rw = rw + 1
Next
end if
Next

--
Regards,
Tom Ogilvy


"ron_dallas" wrote in message
oups.com...
Looks like it goes and finds them, but puts everything in A1

Let me change it and say copy what every it find to sheet systems, so
find a line, paste it, find next line paste it on the next line. Would
that be easier?



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
Find cell and copy value to column to the right Ixtreme Excel Discussion (Misc queries) 1 April 9th 08 12:17 PM
FIND LAST COPY OF A TEXT IN A COLUMN nastech Excel Discussion (Misc queries) 10 October 6th 07 03:11 AM
Macro to find, copy, and paste until value change Valerie Excel Worksheet Functions 4 January 26th 06 04:10 AM
copy and pasting a find all list into another column Ben Excel Discussion (Misc queries) 18 December 31st 05 10:51 PM
find value and copy column to new spreadsheet [email protected] Excel Programming 1 February 2nd 05 01:38 AM


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