1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Excel Macro help

Discussion in 'Business Applications' started by blaircj, Oct 2, 2008.

Thread Status:
Not open for further replies.
  1. blaircj

    blaircj Thread Starter

    Joined:
    Jul 16, 2008
    Messages:
    7
    Hi, I've had great success with this form before and was looking for some more help on an Excel spread sheet. I've created a macro that inputs data onto a separate sheet, entered from a template sheet. The macro executes using a button and i was wondering if there was a line of code that could bring the input cell back to the first entry position, after the button in clicked and the inputs are erased. I've attached the input section of my program if anyone would like to look at it. Thanks for any help.
     

    Attached Files:

  2. bomb #21

    bomb #21

    Joined:
    Jul 1, 2005
    Messages:
    8,546
    After which button is clicked? (you have 3)

    Regardless, just add Range("C2").Select at the end of the code.

    And while you're at it, replace:

    Range("C2:C3:C4:C5:C6:C7:C8").ClearContents

    with:

    Range("C2:C8").ClearContents

    HTH
     
  3. blaircj

    blaircj Thread Starter

    Joined:
    Jul 16, 2008
    Messages:
    7
    Thanks Bomb 21 that's exactly what i was looking for, it was for all three buttons by the way. I think your sample input file (on a previous post) was the base of where i created this spreadsheet, so thanks again.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/755590

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice