Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.setup
cporter
 
Posts: n/a
Default How do I create a macro that will automatically input lines?

I am trying to create a macro that will delete lines based on a number that
is inputted in a particular cell. For instance if the number is cell A1 is
10 then input 10 rows for data.
  #2   Report Post  
Posted to microsoft.public.excel.setup
Bob Phillips
 
Posts: n/a
Default How do I create a macro that will automatically input lines?


Rows(10).Resize(Range("A1").Value).Delete

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"cporter" wrote in message
...
I am trying to create a macro that will delete lines based on a number

that
is inputted in a particular cell. For instance if the number is cell A1

is
10 then input 10 rows for data.



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
how to create a command button, then assign macro to it in excel kshaheen Excel Discussion (Misc queries) 3 June 24th 08 01:03 PM
how to create automatic macro with if statement or similar betatryck_se Excel Discussion (Misc queries) 2 December 14th 05 11:32 AM
create macro for learning purposes jzzman Excel Worksheet Functions 1 July 1st 05 03:34 PM
How do I create a macro, that references another excel file ??? Aries Excel Worksheet Functions 1 May 25th 05 11:37 AM
Macro to create macro Carl Bowman Excel Discussion (Misc queries) 2 February 6th 05 10:49 AM


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