Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2004, 08:05 AM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default insert a row with vba

Hi,

I'm new enough to writing vba for excel.
I'm wondering if there is function to insert a row at the bottom of a range.
I know how to make the range bigger but I'm not sure how to insert an extra row at bottom of the range.

Thanks in advance

 
Old December 21st, 2004, 12:35 PM
Authorized User
 
Join Date: Nov 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dim NextRow as Long

NextRow = Worksheets("Sheet1").Range("A65536").End(xlUp).Row + 1
Worksheets("Sheet1").Cells(NextRow, 1) = yourData





Similar Threads
Thread Thread Starter Forum Replies Last Post
insert row into table stealthdevil Access VBA 11 June 16th, 2007 08:32 AM
Insert Row in Database monika.vasvani ASP.NET 1.0 and 1.1 Professional 1 November 18th, 2006 05:17 AM
How to insert row no automatically Jane SQL Server 2000 1 January 13th, 2006 12:20 PM
insert row to database heathonbass C# 2 December 19th, 2004 01:02 AM
stringgrid-insert row nas Visual C++ 0 December 10th, 2004 01:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.