+ Reply to Thread
Results 1 to 9 of 9

macro: The number next to name increases by one

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    Lithuania
    MS-Off Ver
    Excel 2007
    Posts
    4

    macro: The number next to name increases by one

    Hello,

    i'm trying to write a macro but i can't find function which could help me.

    Everything should look like this:

    I have two sheets:

    In Sheet1 when i enter the name in A1 and press the commandbutton next to it

    macro should find that name in sheet2 on column A and increase the number next to it on column B in the same row by one.

    I'd be very grateful if someone could help me ;/ sorry for bad english :/
    Last edited by dundukas; 01-07-2013 at 07:10 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: macro: The number next to name increases by one

    Attach a sample workbook.

    When you are in Advanced reply, click on the paperclip to open the upload window.

    View Pic
    Ben Van Johnson

  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: macro: The number next to name increases by one

    Try this.....................
    Attached Files Attached Files
    Gary's Student

  4. #4
    Registered User
    Join Date
    01-07-2013
    Location
    Lithuania
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: macro: The number next to name increases by one

    Thanks a lot !!

    I have another question :

    How to protect sheet1 in my VBAexpl.xlsm document? Do i need to rewrite that macro command which finds random text from sheet2 ?

    Thanks for a help

    VBAexpl.xlsm

  5. #5
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: macro: The number next to name increases by one

    Do you want to protect Sheet1 from User actions or from macro actions?

  6. #6
    Registered User
    Join Date
    01-07-2013
    Location
    Lithuania
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: macro: The number next to name increases by one

    User actions

  7. #7
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: macro: The number next to name increases by one

    Here is a typical method
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-07-2013
    Location
    Lithuania
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: macro: The number next to name increases by one

    Thanks again !!

    But how should look like macro command which do not show that "random" formula when I select on Cell B3 .

    Sorry for bad english. I hope you understand what I wanted to say :/

  9. #9
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: macro: The number next to name increases by one


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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