+ Reply to Thread
Results 1 to 4 of 4

Help with auto generating numbers (as a text) based on a value

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    San Francisco, USA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Help with auto generating numbers (as a text) based on a value

    Hi,

    Can someone help me generating the VBA macro to accomplish this task?

    What I want to acomplish is this.

    On cell(B5)= CC90356
    I would like to generate this text for 10 (this # will change!)
    Final results:

    Cell (B5) = CC90356
    Cell (B6) = CC90357
    Cell (B7) = CC90358
    Cell (B8) = CC90359
    Cell (B9) = CC90360
    Cell (B10) = CC90361
    Cell (B11) = CC90362
    Cell (B12) = CC90363
    Cell (B13) = CC90364
    Cell (B14) = CC90365
    Cell (B15) = CC90366

    How can I write the VBA macro for that?
    Thanks in advanced!

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Help with auto generating numbers (as a text) based on a value

    so this should work....you don't mention how you want to launch this, so it's very basic....also, if you don't need a VBA solution you can do this other ways....

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    06-04-2013
    Location
    San Francisco, USA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Help with auto generating numbers (as a text) based on a value

    Hi Judgeh59, your codes worked perfectly!! Thank you so much!!!

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Help with auto generating numbers (as a text) based on a value

    glad I could help and thanks for the rep point....please don't forget to set this thread to SOLVED...have a great day

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Generating statistical numbers based on dates
    By jasusmc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2014, 03:40 AM
  2. Auto generating emails based on date in cell
    By Snaga in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2014, 12:41 PM
  3. Replies: 0
    Last Post: 04-20-2013, 07:17 PM
  4. [SOLVED] Generating numbers based on a probability distribution
    By Delta223 in forum Excel General
    Replies: 7
    Last Post: 03-28-2012, 08:24 AM
  5. auto generating number based on information from other cells
    By cody1187 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 02-21-2012, 02:27 PM

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