LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Textbox with insert Rows in Excel 2000 VBA

I am working on some code with Excel 2000 VBA and Microsoft
Windows 2000.

I want to do a textbox prompt, get a number and insert the
amount of rows that the user selects.

Here's what I have, but it only inserts one line, no matter
how many rows the user tells it:

' code starts here
Dim answer, counter as integer
inputbox "How many rows would you like to insert?", answer

For counter = 0 to answer
activecell.entirerow.insert
next counter
' code ends here

 
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
insert rows in locked worksheet - from Excel 2003 to 2000 Venus Excel Discussion (Misc queries) 1 April 1st 09 05:59 PM
Imported into Vista, how to delete 2000 Excel textbox? Hank Excel Discussion (Misc queries) 0 May 4th 07 11:17 PM
Insert Textbox values to seperate rows/columns thompssm Excel Programming 3 December 1st 05 09:53 PM
Removing textbox padding, how to please, Excel 2000/2003 Mike Excel Programming 2 November 15th 05 12:10 AM
Help needed with textbox formatting in Excel 2000 JIMBROOKS Excel Discussion (Misc queries) 1 January 1st 05 03:33 PM


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