+ Reply to Thread
Results 1 to 3 of 3

implement letters

  1. #1
    Registered User
    Join Date
    01-20-2012
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    18

    implement letters

    Hi
    I'm looking on a way to implement letter so I can search through a worksheet with VBA.

    ex:

    letter = "A"
    while letter <> "Z"
    letter = letter+1 (that would make letter = "B")
    sheet2.range(letter & 1).value = sheet7.range(letter & 362).value
    wend

    That's the main idea, it's not as simple as that, but I hope you get the idea about what I want!
    Thanks a lot

    Benedict
    Last edited by benedictexcel; 02-09-2012 at 10:29 AM.

  2. #2
    Registered User
    Join Date
    01-20-2012
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: implement letters

    Hi
    Found the way to do this, using chr(ASCII)
    the letters have their own ASCII number. So the way i found is converting the number into it's ASCII value usng the chr() comand.

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: implement letters

    benedictexcel,

    I'm a bit confused, why wouldn't you just use the below?
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    01-20-2012
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: implement letters

    I wouldn't use this formula because I must skip one row every now and then. Also i simplified the idea so it would be easier to understand. I needed to do a few actions before copying the cells.

+ 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