+ Reply to Thread
Results 1 to 10 of 10

VBA Code Assistance

  1. #1
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    VBA Code Assistance

    Hi

    I have a further question concerning the attached spreadsheet.

    The following code functions as expected.

    Please Login or Register  to view this content.
    However, I would like to introduce some code the capitalises the first letter in
    Please Login or Register  to view this content.
    I am not sure how to code this. I did a google search without success.

    Many thanks
    Attached Files Attached Files
    Have a great day!!!!

    Lou

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,336

    Re: VBA Code Assistance

    For proper case, you’ll need to use the StrConv function.
    StrConv(.Cells(R, 2), vbProperCase)

    Alternatively, you can use the worksheet function PROPER, like this
    Application.Proper(.Cells(R, 2))


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: VBA Code Assistance

    Hi Trevor

    Many thanks for your quick response.

    I will use what you have provided

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,336

    Re: VBA Code Assistance

    You're welcome.

  5. #5
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: VBA Code Assistance

    Hi Trevor

    Sorry for getting back, but I have to put my hand up and concede defeat.

    Maybe I am thick but I am struggle to get you concept to work.

    Are you able to provide some more advice?

    Many thanks

  6. #6
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: VBA Code Assistance

    Hi Trevor

    I have at long last got it working with this

    Please Login or Register  to view this content.
    and I inserted between

    Please Login or Register  to view this content.

    This is now the completed code
    Please Login or Register  to view this content.
    Thanks
    Last edited by kapeller; 09-19-2014 at 10:44 PM.

  7. #7
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: VBA Code Assistance

    nevermind Im guessing you got it

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,336

    Re: VBA Code Assistance

    Well done, but it needs to be:

    Please Login or Register  to view this content.
    And it needs to go before the End With otherwise the code/cells are not associated with the Member Induction List worksheet


    Regards, TMS

  9. #9
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: VBA Code Assistance

    Hi Trevor

    Thanks for that. I have made the change.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,336

    Re: VBA Code Assistance

    You're welcome.

+ 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] Code assistance
    By Jim May in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2005, 01:05 PM
  2. [SOLVED] Code assistance
    By Jim May in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2005, 05:19 PM
  3. VBA code assistance.
    By badger55 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2005, 09:32 AM
  4. [SOLVED] Assistance with code Please
    By Greg B... in forum Excel General
    Replies: 8
    Last Post: 03-02-2005, 11:16 PM
  5. I need assistance getting VBA code to do the following...
    By SD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2005, 12:06 AM

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