Best way to input data into multiple sheets in Excel? -


basically need able have few tables sales of specific categories e.g. pc , laptop. need have main table displays sales.

for input i'm using input boxes , dropdown select category (pc or laptop), input put in 1 large table along sale information. i'm wondering best method having data put in separate worksheet category is? i'm @ bit of loose end start. thought possibly using if statement in vb if input e.g. pc insert worksheet pc seems quite inefficient way of doing this.

your ideas appreciated.

if unsure place vb code, it's best add code not behind 1 of sheets, in separate module. on other hand, need entry point code called @ specific event. might worksheet event (for example, change event) or button or menu user has activate when wants main table updated. call module code there.

if provide specific example, give better answer.

using worksheet change event: add code each of input sheets:

private sub worksheet_change(byval target range)     updatemainsheet(activesheet)     ' or updatemainsheet(target) end sub 

updatemainsheet should public sub in separate module copies input data given sheet main sheet (should delete data in main sheet has been deleted on given sheet).


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -