+ Reply to Thread
Results 1 to 2 of 2

Generating numbers

  1. #1
    Registered User
    Join Date
    04-16-2011
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Generating numbers

    How can I program a specific cell to generate a number (sequential) everytime the worksheet is opened. Im trying to generate a number for for purchase orders.

    Thanks

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Generating numbers

    Hey jude1993 and welcome to the forum

    Take this short code and make it better. Don't let it get under you skin, just begin...<sorry, just singing to myself>

    See the attached where an event macro sits behind Sheet 1. Each time the sheet is selected it will add 1 to the cell in A1. Click another tab and then back to sheet 1 to see it work
    Attached Files Attached Files
    Last edited by MarvinP; 04-16-2011 at 06:24 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

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