Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Incrementing a field

I am importing a bunch of data, and the first field is Record #: I
want this field to increment with each imported record.

So the first line would be record 1, second line record 2 etc etc.
Anyone have some code that will do this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Incrementing a field

As always, best to post your coding efforts but

cells(rows.count,"a").end(xlup).row+1
will give you the next available row

--
Don Guillett
SalesAid Software

"wmureports" wrote in message
oups.com...
I am importing a bunch of data, and the first field is Record #: I
want this field to increment with each imported record.

So the first line would be record 1, second line record 2 etc etc.
Anyone have some code that will do this?



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
incrementing paul/bones[_2_] Excel Worksheet Functions 2 September 12th 07 01:54 PM
incrementing luuthur Excel Discussion (Misc queries) 4 May 23rd 07 05:07 AM
Getting the last value of an incrementing sheet Pedro Fonseca Excel Worksheet Functions 5 May 12th 05 03:20 PM
Next not incrementing davegb Excel Programming 11 March 19th 05 01:25 PM
Automatic incrementing Marvin Bordelon Setting up and Configuration of Excel 1 December 15th 04 12:26 AM


All times are GMT +1. The time now is 05:21 AM.

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"