Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Question. PLS help. inserting unknown # of rows.

Status
Not open for further replies.

schne10134

Technical User
Feb 26, 2003
69
US
Hello,

I have a spreadsheet that i would like to ask the User how many accounts there are, and then have that many rows inserted into the spread sheet. So, for example there are 4 accounts, i would like the area under "accounts" to move eveything else down 4 rows and insert enough room to enter data for 4 accounts..

Any one have any ideas? thanks alot!!

eds.
 
dim noRows as long
noRows = inputbox("How many accounts")
Rows("2:" & noRows+1).Insert Shift:=xlDown

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top