+ Reply to Thread
Results 1 to 5 of 5

Compile error 91 object variable with block variable not set

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Compile error 91 object variable with block variable not set

    Hi friends,

    I’m getting compile error 91 ‘object variable with block variable not set’ on the following line:

    Please Login or Register  to view this content.
    If I enter a letter ‘L’ in column ‘C’ on ‘Information’ sheet then
    It should be change to upper case automatically
    Column ‘g’ should have a value ‘L’ automatically

    The code is:

    Please Login or Register  to view this content.
    Any help will be appreciated.

    Thanking you,
    Last edited by mso3; 02-21-2015 at 11:44 PM. Reason: Change the title and post a improved code
    Sincerely,

    mso3

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Compile error 91 object variable with block variable not set

    Just replace "cell" with Target, no need of variable "cell".

  3. #3
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Compile error 91 object variable with block variable not set

    Hi jindon,
    Perfect! It's working fine.

    If a user enter a 'L' in lower case then it's not working. So it should be change to upper case automatically to get perfect output.

    Shall I use a 'upper' function or insert a code to achieve it?
    Please suggest me a code to achieve it.

    Thank you and have a nice day.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Compile error 91 object variable with block variable not set

    VBA has UCase, LCase function
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Compile error 91 object variable with block variable not set

    Hi jindon,
    Perfect! Thank you.

    Now it's working fine.

+ 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] Help require to get image in output
    By mso3 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-23-2014, 06:46 AM
  2. Replies: 17
    Last Post: 10-14-2014, 08:21 AM
  3. [SOLVED] The code for sum is not giving correct output, help require
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2014, 06:23 PM
  4. [SOLVED] Help require to get a output in total column
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2014, 11:08 AM
  5. Is VBA possible on this output or does this require just a SUMIF formula?
    By geng in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2010, 03:24 AM

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