+ Reply to Thread
Results 1 to 5 of 5

adding prefix numbers to text in column automatically?

  1. #1
    Registered User
    Join Date
    07-22-2008
    Location
    qc
    Posts
    2

    adding prefix numbers to text in column automatically?

    Hello everyone,

    I'm new the boards, and just started a new job that requires a lot of macros.

    My first question is,

    Column A has a goes from 1-950 in each row respectively.

    For instance,

    Row 1 under column A = 0
    Row 2 under column A = 1
    and so on...

    I want to add "00000" to the front of each number and ".jpg" to the back of each number.

    Final Result

    Row 1 under column A = 000000.jpg
    Row 2 under column A = 000001.jpg
    and so on...

    If anyone knows of a easy approach to do this instead of manually doing through each row, let me know!

    I appreciate it greatly

    -JEsse

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588
    try
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Last edited by jindon; 07-22-2008 at 11:19 PM.

  3. #3
    Registered User
    Join Date
    07-22-2008
    Location
    qc
    Posts
    2
    Thank you sir.

    That helped, but it replaced with the data I already had.

    For example, I have some names on there.

    James
    Jesse
    Brian
    Janet
    Peggy

    I want the code to input the "00000" and the ".jpg" and keep the data that is already there.

    So...

    00000James.jpg
    00000Jesse.jpg
    00000Brian.jpg

    and so on...

    Any ideas for that?

    Thank you again,
    -Jesse

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Welcome to the forum.

    Please read our Forum Rules about thread titles, and then edit yours to be descriptive of your problem.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588
    What was your original question then ?
    Please Login or Register  to view this content.

+ 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