Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3398266
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:37:42+00:00 2026-05-18T04:37:42+00:00

Basically I need to be able to have a few tables for sales of

  • 0

Basically I need to be able to have a few tables for sales of specific categories e.g. pc and laptop. I also need to have a main table that displays all sales.

For input i’m using input boxes and a dropdown to select which category (pc or laptop), this input is then just put in to one large table along with the sale information. I’m just wondering what the best method for having this data put in to a separate worksheet just for that category is? I’m at a bit of a loose end where to start. I thought about possibly using an IF statement in the VB where if the input is e.g. PC then also insert into the worksheet PC but this seems like quite an inefficient way of doing this.

Your ideas are greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:37:43+00:00Added an answer on May 18, 2026 at 4:37 am

    If you are unsure where to place your VB code, it’s probably best to add the code not behind one of the sheets, but in a separate module. On the other hand, you will need an entry point your code which is called at a specific event. That might be a worksheet event (for example, the change event) or simply a button or menu the user has to activate when he wants the main table to be updated. Call your module code from there.

    If you could provide us with a specific example, we could probably give you a better answer.

    Using the worksheet change event: add code like this to each of your input sheets:

    Private Sub Worksheet_Change(ByVal Target As Range)
        UpdateMainSheet(ActiveSheet)
        ' or UpdateMainSheet(Target)
    End Sub
    

    UpdateMainSheet should be a public Sub in a separate module which copies the input data from the given sheet to your main sheet (should also delete data in the main sheet which has been deleted on the given sheet).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I need to get few permutations of a list. So, the method that
I have a few linked tables in my custom forum: categories , sub_categories and
I have a few tables in SQL that are pretty much like this A
Basically I just need to be able to summon the keyboard whenever a user
basically need to change the value that - admin_url() returns any idea?
Basically I need to reset Identity Increment for all tables to its original. Here
Basically I need to setup my ASMX file so that when I pull it
So basically I need to make feature that if you select something from first
I have a .NET Windows Service which spawns a thread that basically just acts
We basically need to be able to adjust behaviour at start-up time, by providing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.