+ Reply to Thread
Results 1 to 12 of 12

Edit existing macro

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    Mlawa
    MS-Off Ver
    13
    Posts
    19

    Edit existing macro

    Hello,

    I have a file with macro, which unfortunately does not work because I added a new column "Accesories". I do not know how to change macro... Can anyone help?

    The second thing that I would like to after click on the START button was also the values for the column "Accesories",(vertical search model.suffix and return from column C from "model list" sheet.
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Edit existing macro

    I downloaded your sample, and it worked perfectly fine manually and by clicking start.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Edit existing macro

    Hi Seeboo

    You can try this but I don't really know what the ElseIf Code is doing
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Edit existing macro

    Hi Seeboo,

    Here's alternate code for your routine:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Registered User
    Join Date
    04-01-2015
    Location
    Mlawa
    MS-Off Ver
    13
    Posts
    19

    Re: Edit existing macro

    Hello,

    I am very grateful to all for your help.

    Big thank you!

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Edit existing macro

    You're welcome and thanks for the rep!

  7. #7
    Registered User
    Join Date
    04-01-2015
    Location
    Mlawa
    MS-Off Ver
    13
    Posts
    19

    Re: Edit existing macro

    Hello again,

    xladept,

    I need some support... I noticed this issue just now... it is about column "F" in Plan sheet. Macro returns only one value but sometimes there is more than one (example: 32LB580U-ZM.BEEMLJP).
    What is the fuction for return all results not only one?
    Last edited by Seeboo; 04-14-2015 at 04:35 AM. Reason: Additional issue

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Edit existing macro

    Hi Seeboo,

    Try this:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    04-01-2015
    Location
    Mlawa
    MS-Off Ver
    13
    Posts
    19

    Re: Edit existing macro

    I do not know what is it but macro ommits some rows... please look at the attachment.
    Attached Files Attached Files

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Edit existing macro

    Sorry Try this:

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    04-01-2015
    Location
    Mlawa
    MS-Off Ver
    13
    Posts
    19

    Re: Edit existing macro

    Excellent! Thank you !

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Edit existing macro

    You're welcome and thanks for the rep!

+ 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. Replies: 2
    Last Post: 11-03-2014, 12:06 PM
  2. [SOLVED] Can excel edit an existing macro with very little user input?
    By Angelfish13 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-30-2013, 02:28 PM
  3. [SOLVED] Edit existing macro to include week change
    By adamsurpren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2012, 08:11 AM
  4. Please Help Edit Existing Macro
    By Orangeworker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2010, 06:41 PM
  5. Running a macro to edit one line in existing VBA
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2006, 03:50 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