Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default vbscript to open worksheet, insert data on first open cell....HELP.....

GBPackerBacker wrote:
.. look into the last cell of Column A


I think you want:
Dim iRow
To get the row of the last used cell in column A:
iRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
To get the row of the last used cell in the worksheet:
iRow = ActiveSheet.UsedRange.SpecialCells(xlCellTypeLastC ell).Row
and you can add 1 to get the next row.
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
Wish to add a WORKSHEET but 'WORKSHEET' not open in 'INSERT' Zona Excel Worksheet Functions 1 September 6th 06 03:52 AM
Delete Insert Worksheet on Open/Reset on Close Jane Excel Programming 1 April 10th 06 02:08 PM
Save and Close all Open Workbooks using VBScript Rick De Marco Excel Programming 1 November 18th 04 07:08 AM
Catching an Open Excel File with VBScript onedaywhen Excel Programming 2 April 6th 04 09:54 AM
open Excel workbook using vbscript Tom Ogilvy Excel Programming 0 September 16th 03 04:38 PM


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