#1   Report Post  
Posted to microsoft.public.excel.misc
OSK OSK is offline
external usenet poster
 
Posts: 9
Default MACRO URGENT HELP

Hi all:

I'm trying to make a Macro that inserts a blank row each 1000 rows... I have
a DB with 18K rows.

Thanks in advance to anyone that can help me!!!

OSK
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default MACRO URGENT HELP

hi,

Try this pasted in as worksheet code:-

Sub sonic()
For x = 1000 To 60000 Step 1000
Cells(x, 1).Select
Selection.EntireRow.Insert
Next
End Sub

Mike

"OSK" wrote:

Hi all:

I'm trying to make a Macro that inserts a blank row each 1000 rows... I have
a DB with 18K rows.

Thanks in advance to anyone that can help me!!!

OSK

  #3   Report Post  
Posted to microsoft.public.excel.misc
OSK OSK is offline
external usenet poster
 
Posts: 9
Default MACRO URGENT HELP


Mike:

You've been extremely helpful...

thaks a lot

OSK



"Mike H" wrote:

hi,

Try this pasted in as worksheet code:-

Sub sonic()
For x = 1000 To 60000 Step 1000
Cells(x, 1).Select
Selection.EntireRow.Insert
Next
End Sub

Mike

"OSK" wrote:

Hi all:

I'm trying to make a Macro that inserts a blank row each 1000 rows... I have
a DB with 18K rows.

Thanks in advance to anyone that can help me!!!

OSK

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
Urgent-Urgent VBA LOOP Jeff Excel Discussion (Misc queries) 0 October 6th 05 05:46 PM
Urgent Help VBA Jeff Excel Discussion (Misc queries) 3 October 4th 05 10:06 PM
Urgent - Help VBA Macro Jeff Excel Discussion (Misc queries) 8 October 3rd 05 08:25 PM
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
URGENT Mac/PC macro compatibility problem marika1981 Excel Discussion (Misc queries) 7 January 8th 05 12:43 AM


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