+ Reply to Thread
Results 1 to 3 of 3

Macro is not placing Chr letter as it suppose to accoring to code

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Macro is not placing Chr letter as it suppose to accoring to code

    The code below suppose to fill in the given range (myrange) with a name (specified in Sheets("Machining").Range("J10")) and letters starting from an "A" (Chr(56)) and finish at the letter corresponding to whatever end of range is.
    Instead it is placing the letters as of Row 9 i.e. if my IF match is at row 11 then it will put C,D,E .. and so on instead of starting with an "A"




    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Macro is not placing Chr letter as it suppose to accoring to code

    Don't use i for the letter part, use another variable.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Macro is not placing Chr letter as it suppose to accoring to code

    Quote Originally Posted by Norie View Post
    Don't use i for the letter part, use another variable.
    Please Login or Register  to view this content.
    AWESOME! This worked Rep to you

+ 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. [SOLVED] Finding MAX value and placing a letter next to that value
    By coach.32 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-18-2015, 04:23 PM
  2. [SOLVED] Use the column Header to column letter code to set range in Macro
    By capson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2013, 11:06 AM
  3. [SOLVED]Order Code has 1 letter added need function to delete said letter
    By king10001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2013, 01:25 PM
  4. I suppose this is asking too much, but...
    By narlee in forum Excel General
    Replies: 2
    Last Post: 09-06-2012, 11:58 AM
  5. Code is placing data in the wrong range
    By Habanero Time in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2012, 11:25 AM
  6. Code does what its suppose to do, how can i make it better
    By delboy2405 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-19-2012, 01:03 PM
  7. I suppose I use a web query?
    By mynew06 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-20-2007, 02:50 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