+ Reply to Thread
Results 1 to 3 of 3

Syntax to add incrementing column letters to a string

  1. #1
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Syntax to add incrementing column letters to a string

    Good morning/afternoon/evening....

    Do any of you know how I would be able to add incrementing column letters to a set of strings, using VBA?

    What I need is a series of paths, which end in the column letter - for example my rows need to look like this

    [\\C:\mydrive\myfilename,2,A]
    [\\C:\mydrive\myfilename,2,B]
    [\\C:\mydrive\myfilename,2,C]
    [\\C:\mydrive\myfilename,2,D]

    The output has to look just like that, brackets and all, as they will serve as inputs into another system.
    The "2" is the row, if that makes any difference. The last column will vary, but in the example I have to prepare, I only have to go up to column DF (and I'd hate do to this manually every time).

    Thanks for any guidance!

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Syntax to add incrementing column letters to a string

    Hi

    Try this
    Please Login or Register  to view this content.
    rylo

  3. #3
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Syntax to add incrementing column letters to a string

    Holy bananas, you're a genius, and saved me a ton of time! Thank you so much!

+ Reply to Thread

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