+ Reply to Thread
Results 1 to 5 of 5

Increment a specific cell on a specific sheet.

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Increment a specific cell on a specific sheet.

    Hi, I'm new to VBA/macros. I'm trying to increment a specific cell in a specific sheet using a shortcut key. This is what I have:

    Please Login or Register  to view this content.
    I know this is probably very elementary, but I can't figure it out.
    My version is 2007

    Thanks in advance for help!

    Jared
    Last edited by Leith Ross; 09-10-2012 at 02:20 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Increment a specific cell on a specific sheet.

    Hello jared5324 ,

    Welcome to the Forum!

    Rarely do you ever need to select an object in VBA before you perform an action. The code can be written this way...
    Please Login or Register  to view this content.
    What is your code not doing?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Increment a specific cell on a specific sheet.

    Hi,

    Seems to work OK for me. As indeed does the simplified version and more efficient

    Please Login or Register  to view this content.
    What problem are you having? Are you sure you have a "." in the sheet "serial no" name?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    09-10-2012
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Increment a specific cell on a specific sheet.

    Thank you so much! My code was not doing anything.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Increment a specific cell on a specific sheet.

    Quote Originally Posted by jared5324 View Post
    Thank you so much! My code was not doing anything.
    ...and it is now?

    If so you may mark the thread as closed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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