Results 1 to 2 of 2

AUTO GENERATE NUMBERS to antoher worksheet

Threaded View

  1. #1
    Registered User
    Join Date
    03-20-2012
    Location
    LA
    MS-Off Ver
    Excel 2007
    Posts
    32

    AUTO GENERATE NUMBERS to antoher worksheet

    I'm trying to write a macro to lookup the last number used in a column and auto generate the next number on another worksheet. This is what I have so far, the number changes but not base on the last number.

    Sub Next_ECN_Number()
        Sheets("DataECN").Select
        Range("E:E").End(xlDown).Select
        Sheets("ECN").Select
        Range("G3").Value = Range("G3").Value + 1
       
    End Sub
    Attached Files Attached Files
    Last edited by Leith Ross; 04-26-2013 at 04:21 PM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1