Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding New Rows in VBA

I've created a user form to input data into a table. I need it t
create a new row at the top of the table and insert the data entere
into the form into that new row. Is there a way to do that

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Adding New Rows in VBA

The easiest way is to 'name' the column heading, and then get VBA to goto the
name, come down one row, then insert a row and make your entry.
The beauty of doing this is that it is bullet-proof against users inserting
rows above column headings. If you need example code - come back

M

"Captainski009 " wrote:

I've created a user form to input data into a table. I need it to
create a new row at the top of the table and insert the data entered
into the form into that new row. Is there a way to do that?


---
Message posted from http://www.ExcelForum.com/


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
Adding rows James Excel Discussion (Misc queries) 5 December 31st 08 07:53 PM
Adding rows based on no of rows specified from a given position nanette Excel Worksheet Functions 1 July 9th 08 02:29 PM
Adding five new rows every 40 rows in a spreadsheet? Olzki Excel Discussion (Misc queries) 8 May 18th 07 02:14 AM
Adding Rows offsets to working rows across two worksheets tom Setting up and Configuration of Excel 3 July 30th 06 07:54 PM
Adding new rows sk8rider Excel Programming 2 June 8th 04 10:12 PM


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