+ Reply to Thread
Results 1 to 11 of 11

Use fill form to place data on a specific sheet without "acitvating" the sheet...

  1. #1
    Registered User
    Join Date
    09-07-2012
    Location
    Germantown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    14

    Use fill form to place data on a specific sheet without "acitvating" the sheet...

    Ok. Stay with me.

    I am creating a family budget program. I have designed a fill form to enter individual receipts into a "log" sheet (tab 2 is named "log"). When the "enter" button is clicked on the fill form, the entered information is placed into the next set of blank cells on the sheet called "log". The plan is to then use the "log" sheet as a database to create sort, filter, and create a pretty report of where our money is going. Everything is working great so far, except this one issue:

    When I click the "enter" button on the fill form, the view changes to the active sheet "log". The information is being transferred correctly, but I want my view to remain stagnate. i.e. , I don't want the user to see the "log" sheet that contains the data. I want the user to continue looking at the same sheet the entire time.

    Let me know if my question is unclear please. I'm sure you can tell by my post that I am new to VB. But I love it. Thanks in advance for your help. Here is the code (excel 2007):



    Please Login or Register  to view this content.
    Last edited by Cutter; 09-08-2012 at 05:29 AM. Reason: Added code tags

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

    Re: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    The usual way:

    Please Login or Register  to view this content.
    Last edited by Cutter; 09-08-2012 at 05:29 AM. Reason: Added code tags
    Gary's Student

  3. #3
    Registered User
    Join Date
    09-07-2012
    Location
    Germantown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    Didn't Work. Exact same result. The information is correctly placed into sheet 2, but the view switches to sheet 2 also. The fill form is brought up on sheet 3. and I would like the view to remain on sheet 3 while placing the information into sheet 2.

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

    Re: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    You no longer need this line:
    Please Login or Register  to view this content.
    Remove it!
    Last edited by Cutter; 09-08-2012 at 05:30 AM. Reason: Added code tags

  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: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    There may be other changes required......................Post the full sub.

  6. #6
    Registered User
    Join Date
    09-07-2012
    Location
    Germantown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    By Removing that line, the data is incorrectly transferred to sheet 3 (sheet being viewed) instead of transferring to sheet 2 (desired sheet for data entry). Thank you very much for your help.

    Here is the full program...


    Please Login or Register  to view this content.
    Last edited by Cutter; 09-08-2012 at 05:31 AM. Reason: Added code tags

  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: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    I see where emptyrow is used.

    Replace:

    Please Login or Register  to view this content.
    with:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-07-2012
    Location
    Germantown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    Here is the spreadsheet
    Last edited by Skinny Slim; 09-07-2012 at 11:37 PM.

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

    Re: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    I tried send the file back.......
    Attached Files Attached Files

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    @ Skinny Slim

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

  11. #11
    Registered User
    Join Date
    09-07-2012
    Location
    Germantown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Use fill form to place data on a specific sheet without "acitvating" the sheet...

    I still haven't figured it out. Frustrating I know what the problem is, but I don't know enough to correct it...

    Here is the code:
    Please Login or Register  to view this content.
    The problem is that the code looks at the active sheet to determine the empty cells. I need to know how to point to another sheet without making it active.

    Thoughts anyone?

+ 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