Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Select and move range throughout workbook

How would I select a range from column C to column E to the end of text
(all rows down where there is text), cut and move down 2 rows to Row 3, over
to column A and paste through all spreadsheets that have information?

Then delete row 1 in each spreadsheet?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Select and move range throughout workbook

This is really clunky and keep in mind I'm no pro, but it worked for me and
I hope it will do what you are wanting. I grouped all the sheets together
... I think that's what you wanted(?), if not, write back, I'm sure one of
the pros can help.

Sub SelectNMove()
Worksheets.Select
Sheets("Sheet1").Activate

range("c1:E1").Select
range(Selection, Selection.End(xlDown)).Select
Selection.Cut
range("A3").Select
ActiveSheet.Paste
range("A1").Select
Selection.EntireRow.delete
range("B1").Select
Selection.delete Shift:=xlToLeft
range("A1").Select
Selection.EntireRow.delete
End Sub


"ExcelBeginner" wrote in message
...
How would I select a range from column C to column E to the end of text
(all rows down where there is text), cut and move down 2 rows to Row 3,

over
to column A and paste through all spreadsheets that have information?

Then delete row 1 in each spreadsheet?





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Select and move range throughout workbook

This would work if all the sheets had the same number of rows, but all the
sheets have different number of rows. Do you know how to run it so it can
determine the length or ending rows in each sheet?


"Annette" wrote in message
...
This is really clunky and keep in mind I'm no pro, but it worked for me

and
I hope it will do what you are wanting. I grouped all the sheets together
.. I think that's what you wanted(?), if not, write back, I'm sure one of
the pros can help.

Sub SelectNMove()
Worksheets.Select
Sheets("Sheet1").Activate

range("c1:E1").Select
range(Selection, Selection.End(xlDown)).Select
Selection.Cut
range("A3").Select
ActiveSheet.Paste
range("A1").Select
Selection.EntireRow.delete
range("B1").Select
Selection.delete Shift:=xlToLeft
range("A1").Select
Selection.EntireRow.delete
End Sub


"ExcelBeginner" wrote in message
...
How would I select a range from column C to column E to the end of text
(all rows down where there is text), cut and move down 2 rows to Row 3,

over
to column A and paste through all spreadsheets that have information?

Then delete row 1 in each spreadsheet?







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
Select sheets ina workbook based on radio buttons and move them Larry Fitch Excel Worksheet Functions 4 September 28th 09 01:42 AM
Select & Move Range Gene Augustin Excel Discussion (Misc queries) 4 February 15th 09 05:27 PM
Cannot select single cell. Mouse move automatically creates range. Dave Jones - England Excel Discussion (Misc queries) 1 April 22nd 07 09:37 AM
Open Workbook - Select Range as table for vlookup Alan Excel Discussion (Misc queries) 4 November 3rd 05 06:56 PM
RefEdit - cannot select range on another workbook Rob Excel Programming 1 November 26th 03 07:48 PM


All times are GMT +1. The time now is 04:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"