Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Two simple macro commands

On 6/8 1:04PM, buried in the "one more macro" thread, I ask for help with a
macro. I am afraid no one is looking there now and, also, I may have
over-complicated things. There are only two things I think I need. The
rest I can probably figure out myself.

If I am in column A (in any row) and I want to say, delete this row and the
next 12 rows, how do I do that?

If I, first, want to ask "if the current row is row 66536", then end the
macro, how do I code that query?

Thanks
Grace


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Two simple macro commands

Hi Grace,

1) Activecell.Resize(13).EntireRow.Delete

2) If Activecell.Row = 65536 then Exit Sub

---
Regards,
Norman



"Grace" wrote in message
...
On 6/8 1:04PM, buried in the "one more macro" thread, I ask for help with

a
macro. I am afraid no one is looking there now and, also, I may have
over-complicated things. There are only two things I think I need. The
rest I can probably figure out myself.

If I am in column A (in any row) and I want to say, delete this row and

the
next 12 rows, how do I do that?

If I, first, want to ask "if the current row is row 66536", then end the
macro, how do I code that query?

Thanks
Grace




  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Two simple macro commands

Thanks, Norman, Worked like a charm!

-----Original Message-----
Hi Grace,

1) Activecell.Resize(13).EntireRow.Delete

2) If Activecell.Row = 65536 then Exit Sub

---
Regards,
Norman



"Grace" wrote in message
...
On 6/8 1:04PM, buried in the "one more macro" thread, I

ask for help with
a
macro. I am afraid no one is looking there now and,

also, I may have
over-complicated things. There are only two things I

think I need. The
rest I can probably figure out myself.

If I am in column A (in any row) and I want to say,

delete this row and
the
next 12 rows, how do I do that?

If I, first, want to ask "if the current row is row

66536", then end the
macro, how do I code that query?

Thanks
Grace




.

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
Why 39 sec. delay for simple commands, Excel 2003? Thanks! fmes Excel Discussion (Misc queries) 1 December 19th 09 02:10 PM
Macro Commands Chris Premo Excel Discussion (Misc queries) 6 January 1st 09 04:35 PM
Macro Commands danh Excel Discussion (Misc queries) 5 June 22nd 06 02:00 PM
macro commands Amir Excel Discussion (Misc queries) 2 April 3rd 06 10:58 AM
Simple Shell Commands cogent Excel Programming 4 June 8th 04 10:09 PM


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