Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dee
 
Posts: n/a
Default Select non-consecutive rows

Hi,

Is there a way to select non-consecutive rows besides Ctrl + click. If I
want to insert a blank row above about 40 rows, this can become quite tedious.


--
Thanks!

Dee
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
only possible with VBA in this case

--
Regards
Frank Kabel
Frankfurt, Germany

"dee" schrieb im Newsbeitrag
...
Hi,

Is there a way to select non-consecutive rows besides Ctrl + click.

If I
want to insert a blank row above about 40 rows, this can become quite

tedious.


--
Thanks!

Dee


  #3   Report Post  
dee
 
Posts: n/a
Default

Hi,

Thanks - I had a feeling. I guess I will struggle with writing it unless
you know of easy code.

Thanks again!

"Frank Kabel" wrote:

Hi
only possible with VBA in this case

--
Regards
Frank Kabel
Frankfurt, Germany

"dee" schrieb im Newsbeitrag
...
Hi,

Is there a way to select non-consecutive rows besides Ctrl + click.

If I
want to insert a blank row above about 40 rows, this can become quite

tedious.


--
Thanks!

Dee



  #4   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Dee,

Select your cells, and run the macro below.

HTH,
Bernie
MS Excel MVP

Sub InsertRows2()
Dim myRow As Long
Dim myArea As Range
For Each myArea In Selection.Areas
For myRow = myArea.Rows.Count To 1 Step -1
myArea.Cells(myRow, 1).EntireRow.Insert
Next myRow
Next myArea
End Sub


"dee" wrote in message
...
Hi,

Thanks - I had a feeling. I guess I will struggle with writing it unless
you know of easy code.

Thanks again!

"Frank Kabel" wrote:

Hi
only possible with VBA in this case

--
Regards
Frank Kabel
Frankfurt, Germany

"dee" schrieb im Newsbeitrag
...
Hi,

Is there a way to select non-consecutive rows besides Ctrl + click.

If I
want to insert a blank row above about 40 rows, this can become quite

tedious.


--
Thanks!

Dee





  #5   Report Post  
dee
 
Posts: n/a
Default

thank you so much! It worked like a charm.

Do you have any suggestions as to a Web site that has free tutorials for VBA?

Thanks!

"Bernie Deitrick" wrote:

Dee,

Select your cells, and run the macro below.

HTH,
Bernie
MS Excel MVP

Sub InsertRows2()
Dim myRow As Long
Dim myArea As Range
For Each myArea In Selection.Areas
For myRow = myArea.Rows.Count To 1 Step -1
myArea.Cells(myRow, 1).EntireRow.Insert
Next myRow
Next myArea
End Sub


"dee" wrote in message
...
Hi,

Thanks - I had a feeling. I guess I will struggle with writing it unless
you know of easy code.

Thanks again!

"Frank Kabel" wrote:

Hi
only possible with VBA in this case

--
Regards
Frank Kabel
Frankfurt, Germany

"dee" schrieb im Newsbeitrag
...
Hi,

Is there a way to select non-consecutive rows besides Ctrl + click.
If I
want to insert a blank row above about 40 rows, this can become quite
tedious.


--
Thanks!

Dee







  #6   Report Post  
dee
 
Posts: n/a
Default

Bernie:

If it wouldn't be too much trouble, would you mind terribly explaining what
each line of code does?

Thanks!

"dee" wrote:

thank you so much! It worked like a charm.

Do you have any suggestions as to a Web site that has free tutorials for VBA?

Thanks!

"Bernie Deitrick" wrote:

Dee,

Select your cells, and run the macro below.

HTH,
Bernie
MS Excel MVP

Sub InsertRows2()
Dim myRow As Long
Dim myArea As Range
For Each myArea In Selection.Areas
For myRow = myArea.Rows.Count To 1 Step -1
myArea.Cells(myRow, 1).EntireRow.Insert
Next myRow
Next myArea
End Sub


"dee" wrote in message
...
Hi,

Thanks - I had a feeling. I guess I will struggle with writing it unless
you know of easy code.

Thanks again!

"Frank Kabel" wrote:

Hi
only possible with VBA in this case

--
Regards
Frank Kabel
Frankfurt, Germany

"dee" schrieb im Newsbeitrag
...
Hi,

Is there a way to select non-consecutive rows besides Ctrl + click.
If I
want to insert a blank row above about 40 rows, this can become quite
tedious.


--
Thanks!

Dee





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
Multiple rows of data on a single axis (charting) ramseysgirl Charts and Charting in Excel 8 December 29th 04 06:00 PM
Select all data, multiple rows George Wilson Excel Discussion (Misc queries) 6 December 5th 04 08:16 PM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM
Blank Rows Acesmith Excel Discussion (Misc queries) 1 November 30th 04 09:23 PM
How do I remove blank rows in Excel? m28leics Excel Discussion (Misc queries) 2 November 29th 04 11:56 PM


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