+ Reply to Thread
Results 1 to 7 of 7

How to Improve my VBA formula ?? find some space cell at rows and input some word inside

  1. #1
    Registered User
    Join Date
    05-04-2015
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    19

    How to Improve my VBA formula ?? find some space cell at rows and input some word inside

    Hi All

    I have some question about my VBA formula

    Orginal

    error1.jpg

    the result

    result001.jpg

    my vba

    Please Login or Register  to view this content.

    If i try this is work at column A

    but if try the following VBA is not working
    any brother can teach me how to improved

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jayshing; 02-07-2021 at 09:18 PM.

  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,383

    Re: How to Improve my VBA formula ?? find some space cell at rows and input some word insi

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional.)
    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
    05-04-2015
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    19

    Re: How to Improve my VBA formula ?? find some space cell at rows and input some word insi

    Noted and Changed

  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,383

    Re: How to Improve my VBA formula ?? find some space cell at rows and input some word insi

    Thank you. I'll try and have a look later.

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

    Re: How to Improve my VBA formula ?? find some space cell at rows and input some word insi

    1) You can not declare same variable mother than once within a procedure.
    2) You need to take last row from col.D.
    Please Login or Register  to view this content.
    3) this also should work.
    Please Login or Register  to view this content.

  6. #6
    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,383

    Re: How to Improve my VBA formula ?? find some space cell at rows and input some word insi

    Maybe

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-04-2015
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    19

    Re: How to Improve my VBA formula ?? find some space cell at rows and input some word insi

    Quote Originally Posted by jindon View Post
    1) You can not declare same variable mother than once within a procedure.
    2) You need to take last row from col.D.
    Please Login or Register  to view this content.
    3) this also should work.
    Please Login or Register  to view this content.
    Dear jindon

    You are correct and Noted

    Perfect !!! solved my problems

+ 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] How to input Cell reference inside a {}
    By archvanarl in forum Excel General
    Replies: 6
    Last Post: 08-20-2020, 09:06 AM
  2. [SOLVED] move value to next line for every space inside cell
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2019, 01:08 AM
  3. Replies: 7
    Last Post: 05-11-2019, 12:38 PM
  4. [SOLVED] Use an input variable inside a formula
    By fabien1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-27-2019, 07:26 PM
  5. [SOLVED] Using Sumproduct to find a containing word inside a cell
    By bouncingbudha in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2014, 09:28 PM
  6. [SOLVED] formula for 'pick out the first word of the cell up until the space'
    By johnandrews in forum Excel General
    Replies: 3
    Last Post: 03-12-2014, 08:51 AM
  7. Replies: 2
    Last Post: 10-05-2007, 06:12 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