Results 1 to 8 of 8

Excel 2007 : VBA Help Needed to Create a Macro to create a Unique Number...

Threaded View

goldbeje VBA Help Needed to Create a... 10-25-2011, 05:10 PM
tlafferty Re: VBA Help Needed to Create... 10-25-2011, 05:28 PM
goldbeje Re: VBA Help Needed to Create... 10-25-2011, 05:42 PM
tlafferty Re: VBA Help Needed to Create... 10-26-2011, 01:52 PM
goldbeje Re: VBA Help Needed to Create... 10-27-2011, 09:47 AM
goldbeje Re: VBA Help Needed to Create... 10-27-2011, 09:49 AM
bg_enigma1 Re: VBA Help Needed to Create... 05-16-2012, 04:06 PM
arlu1201 Re: VBA Help Needed to Create... 05-17-2012, 03:08 AM
  1. #4
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: VBA Help Needed to Create a Macro to create a Unique Number...

    The code in the attached workbook will generate a new ID number based on the greatest value it finds in the D column. If you are inserting a single ID number, position your cursor in the blank cell where you want to place the ID number, and run the macro NewID. If you want to generate more than one, select the cells in which you want to place the ID. CAUTION! This will place an incremented number in EVERY cell you select, so only select cells in the D column. As for your sorting issue, I still need more information. What column are you sorting by, and what other levels of sort are you applying?
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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