Master-child Relationships In A Userform

Jan 17, 2007

I have an application that uses data stored in an excel spreadsheet. Over time the amount of data has become greater, and the application more unwieldy and difficult to maintain. In order to simplify it, I am trying to create a userform that displays multiple levels of master-child table data (for example, clients-orders-items). The data is stored in separate worksheets. The lower levels must allow inserting and deleting lines, moving them up or down, and editing the data. Does anyone have an example of such a userform that I could adapt to my specific requirements?

View 3 Replies


ADVERTISEMENT

Copy Contents From Child File To Master?

Feb 12, 2014

Basically, the code copy contents from 4 "Child" files to a "Mater" file.

Everything works smoothly but no data is being copied from the "Child" files.

[Code] .....

The other thing I've noticed is that if a "Child" file is open, I cannot run the code. Is there a way that even a "Child" file is open, the code can copy it's contents on the background?

View 14 Replies View Related

Copy Data From Child Workbooks And Paste In Master Workbook

May 25, 2009

I had to copy data from child woekbooks (*.xls) and paste it to the master workbook with same page to page every time when a macro is executed i had done the copy and paste part

But I'm Facing the problem in which i had to deal with

Validations as on both master and child sheet validation (column based combo box is activated )
one is worktype
2ns is time type

i jst had to copy data to the master macro works perfectly fine but the problem is that a msg box appears which signifies that i had to change the name (version ) for both types when i click yes 2 times it pastes the data

I'm attaching my macro as well as pic of that msg box with this attachment

View 6 Replies View Related

3 Layer Relationships - Vba? Use Access Instead

Oct 24, 2008

hi trying to vreate a table for user to upload data. some fields have a relationship and can only select ceratin things from a list dependent on what the previous columns selection is.

Column A selects from defined list 'animal' -cat, dog, mouse

Then if they select "cat" columc c uses define list 'cats' = siamese, persion, mungrel

but if they select dog it will force use of defined list 'dogs' = poodle, labrador, mungrel...

but i then need to add a third layer to this!!!! THIS IS WHERE PROBLEMS BEGIN!

2 layer is fine for : http://www.contextures.com/xlDataVal02.html


but this will not work if for 3 layer..... example colum b, could be a dog or a cat, if mungrel is selected. if the 3rd column depends on both of these ie it matters what column a and b is before 3rd list is defined.....

plus im going to have about a hundred defined lists at this rate.. and ther will be other realtionships in the same table.... :S

i have the relaonships in the format of a list of possible combinations i.

A B C
cat siamese grey
cat siamese black
cat persian white
cat persian black
cat mungrelwhite
cat mungrel ginger
....

dog poodle black
dog poodle pink ....
dog mungrel white
dog mungrel black

There must be an easy way!!!! do i have to use Access?

View 9 Replies View Related

Sorting While Preserving Relationships In Rows

Feb 19, 2010

can anyone help me on how to create a formula or a macro that will automatically sort while preserving the relationships in rows without having to press any button? I have attached a sample workbook. Basically column ABCD under row 8 to 15 contains manual inputed values. While column ABCD beginning from row 24 to 26 should contains the automated sorted preserved relationship values.

View 7 Replies View Related

Create Userform Which Can Add Or Delete Master Data

May 11, 2009

I am making planning & status board for each project(yard). But in my 1st Stage I am having a problem for creation of Userform & List Box for my Display Sheet.

Problem-1) I want to create userform which can Add or Delete my MasterData.

Problem-2) I want to display & change Block Status of Yard in List View. Yard No will be selected using combo box.
List View Should allow addition & Deletion of record.

Note: I am a bit new user for VBA but can copy codes from sample file to use in the files.

View 8 Replies View Related

Creating Relationships Lists From Data Tables Within MS Excel?

Mar 22, 2013

how to do this, but I know it can be done.... I want to use one drop down list created via the Data Validation 'List' Criteria to then lookup data based on the selection made in this list...... this will require a number of reiterations to get to the final result......

So:

Drop Down No:

1. List: Department Function:

2. List: Sub Function List Based on Selection from 1.

3. List: Job Code, Title and Pay Grade based on Selection from step 2

how to ensure that we are able to minimise the overall workbook size due to the complexity that is required here as this is just the basics.... this will need to applicable further once this basic requirement has been fulfilled.

View 9 Replies View Related

Pull Out Unique Values Based On Filters / Relationships?

Dec 18, 2013

I have a table like this:

Category 1
Category 1 Topic 1

Category 1
Category 1 Topic 1

Category 1
Category 1 Topic 2

I'm trying to pull each Category once out into 1 column, and each of it's Topics once in another column.

View 5 Replies View Related

How To Get Parent Row Into Child Rows

Feb 22, 2013

[Code]......

(and about 5000 more sets with garbage page headers in between the sets of parent rows)

Basically the data spit out by machine is separated by a blank row.

Let's say I need all the data with the child row "tn" , so I would autofilter /PivotTable it for that entry, but that leaves me with a blank column A. It'd be no issue if I had the column A heading in the child rows (and the number of spaces in between is random like 2 sometimes 15+ so Vlookup/Index/Match aren't too useful). It is possible to have a function that repeats the first row until it hits a space?

Like so:

[Code] ......

Then I could autofilter/pivottable to get:

[Code] .....

View 1 Replies View Related

How To Calculate NPV Of Alimony / Child Support

Apr 29, 2014

I have a string of payments and want to calculate the Net Present Value. Also, what should be used as a discount rate?

View 7 Replies View Related

Indented Parent Child Relationship

Jul 19, 2014

I have the following table and i need to be able to present it an indented list of parent child relationship. The hierarchy can go 1000+ levels deep. How do i achieve this using VBA?

OName
OPackID
PPackID
PName
ParentID

Name1
556
556
Box1
389

[Code] .........

If there is a better way of presenting it, it isn't limited to an indented list.

View 5 Replies View Related

Remove Duplicate In Child Sheet By Comparing To Other

Mar 15, 2014

How to remove duplicate in child sheet if the records for columns A, H and S are exactly matching with the columns A, H and S of Master sheet.

When I used it in some of my other process, it is not working.

[Code] ....

Attached File : Macro.xlsm‎

View 3 Replies View Related

Child & Parent Data Validation List

Dec 10, 2007

I have data for , say - Cars, Company and Average.

I solve this upto 2 level i.e cars and companies.

But i want a third level also.

When i select Car from drop down list, using data - validation - list , in cells(1,1) , i should get all companies in Cells(1,2) and on selecting companies , i should get Average in cells(1,3).

If i do define name ,and then data validation list , and then use Indirect() function, i can solve it upto 2 level.

Eg. I can get company for car .. but how to get Average Also.

View 8 Replies View Related

Create Parent Child Relationship From Hierarchy

Feb 7, 2008

I have an excel file (see sample attached) with a hierarchy with parents and children spread across different columns and rows. However, I am trying to condense it into one column with parents and one column with children. The only way I've been able to do this is by copying and pasting parents onto children rows, which is both a manual and time-consuming process (when you have a lot of rows). I feel like there must be a way to use VBA or a formula or something to get it to work. I have attached a sample, so you can see what I am trying to do (current data and desired data).

View 6 Replies View Related

Event OnClick - Show Smart Art Shapes Below (child)

Oct 10, 2012

I'm trying to make a menu in my Workbook to access all the others sheets.

To make things easier for my boss, I'm trying to make the menu with SmartArt Shapes (Hierarchic) because it's easier to add/remove itens.

The thing is: he wants it to show the boxes below (hierarchic child) when i click the "mother" box.

It will work pretty like web menus except the mouseover. Image below

menu.jpg

View 1 Replies View Related

Display A Tree-like Structure From Parent-child Nodes

Oct 1, 2008

I encounter the following problem which has been bugging me for weeks.

I am doing up an engineering spreadsheet which calculate the electrical cable size from node A to node B.

Col A and B goes like this:

From|To
Transformer|MSB_A
MSB_A|SSB_A1
Transformer|MSB_B
MSB_B|SSB_B1
SSB_A1|DB_A1
SSB_B1|DB_B1

So Transformer is the parent of MSB_A and MSB_A is in turn the parent of SSB_A1 and so on.

What I would like to achieve is to put these data into the following configuration:

Transformer----->MSB_A
............................|-> SSB_A1
.....................................|----->DB_A1

Transformer----->MSB_B
...........................|-> SSB_B1
....................................|-----.>DB_B1

NB: Please ignore the "dots" above.

This will give the user an overview of the parents and node relationship.

I can't seem to find a solution how to achieve this.

View 9 Replies View Related

Align Numbers From 2 Columns In Parent Child Manner

Apr 5, 2008

I have searched numerous times for the answer I need, but no joy yet.

I have a spread sheet that has one column (call it 1) of data with a single entry each of 100, 200, 300, 400, 500, and so on.

I have a second column (call it 2) that has multiple entries of 100, 200, 300, 400, 500, and so on, and I want to sort so that the rows wind up with the numbers in column 1 all sorted in an accending order, but I want all the same numbers in column 2 sorted to "list" next to the same number before the next number sorts. See below for a small example of what I hope to see once it sorts.
100
100
100
100
200
200
200
200
300
300
300
300

Auto Merged Post Until 24 Hrs Passes;Unfortunately the example didn't post correctly..perhaps this will work but note that the x's are in column 1 and don't exist.

100
xxx100
xxx100
xxx100
200
xxx200
xxx200
xxx200
300
xxx300
xxx300
xxx300

View 5 Replies View Related

Formula To Calculate School Grade Of Child Based On Their Birthday?

Jul 10, 2014

When speaking with parents I want them to enter in their child's birthday i.e. 12/1/1998 in one cell and then automatically generate what grade they should be in the next cell. If the grade year cutoff date is Sept 1.

View 2 Replies View Related

Formula: Recognise When A Child Equalled Or Bettered A Club Record In An Event

Sep 2, 2008

I wrote a formula to recognise when a child equalled or bettered a club record (CR) in an event. However what I neglected to do and cannot work out is for the formula to recognise the new time as the new club record that will then have to be equalled or bettered from then on to be recognised as a club record. For example CR for 70 metres is 9.28 secs. Formula I was working with was IF(ISBLANK(B3),""),IF(B3

View 9 Replies View Related

IE6 Automation In VBA - Open A (child) Page On Clicking A Button In Main (parent)

Jan 29, 2010

My query is regarding internet explorer 6 automation via code in VBA (Excel 2003). I'm trying to open a page on clicking a button in main page.

I'm able to open both parent and child pages via VBA, but now want to automate events (like radio btn click etc) in child page.

below is my initial code -

'========
Sub ListLinks()
Dim IeApp As InternetExplorer
Dim sURL As String
Dim IeDoc As Object
Dim i As Long

'Create new instance of IE
Set IeApp = New InternetExplorer

View 9 Replies View Related

Excel 2010 :: Comparing / Merging Child Spreadsheet (purified Data) Into A Parent One Raw Data)

May 17, 2014

I have a parent spreadsheet with raw data(with errors) and a child spreadsheet without errors. I want to merge the child into parent. (:{). I am thinking of comparing multiple columns from each sheet to ensure maximum accuracy. And when those columns match up we paste the corrected column data from child sheet to parent one. I am using windows 7 and Excel 2010.

View 1 Replies View Related

Created Userform And Command Button But Data Entry Not Allowed In Userform

Jul 16, 2012

I have created a userform and a command button to bring up the user form but when I click on the command button and the user form pops up I am not able to enter any data, the entire page freezes

This is the code

Private Sub CommandButtoncancel_Click()
unloadme
End Sub
Private Sub CommandButtonOK_Click()
With Workbooks("RETS results version 2.xlsm")

[Code] ......

View 1 Replies View Related

Macro That Deletes Sheet With Control & Shows UserForm Causes UserForm To Disappear

Jun 15, 2009

This is weird - if you delete a sheet that contained a control then

a. showing a modeless userform resluts in a userofrm that goes invisible at subroutine End
b. public variables lose their value

These things do not happen if the sheet did not contain a control. Attached is an example file - put the inputfile.xls in your default file location (or add a path in the code) then open the ProblemDemo.xls and run the main macro to see it fal - isthis another Excelbug I've found?

View 9 Replies View Related

Userform Loads Combobox Values Upon Userform Initialize

Oct 1, 2009

I have one userform that loads combobox values upon userform Initialize. Though through a second userform changes can be made to anotherworkbook this workbook is saves any changes. when i close the second userform i need to rerun the 1st userform Initialize event to update the combobox's incase changes have been made.

View 5 Replies View Related

Referencing Userform Control From Another Userform / Class Via Variable

May 3, 2012

I have several non-modal userforms in my App, some of them have date-fields that require manual entry typing of dd/mm/yy etc (No single userform has more than one date-box in it, this I think may be pivotally useful)

Now the Userform 'Calendar' that is built on the class of the same (cCalendar) name, has the write value line 'ActiveCell.value = theCal.value'

I'm looking to change this to refer to the correct userform.Textbox value, depending on which form is open.

I would imagine I could simply have a global string, whose value is set (or re-set) whenever a Userform is initialized (some sort of 'ActiveUF.value = Me.Name), where I get lost is referring to the components by name, so as to have a case statement by where I go:

Code:

Private Sub theCal_AfterUpdate()
Select Case ActiveUF
Case "AddForm"
application.vbe.components("AddForm").controls("AddFormDatePicker").value = theCal.value
Case "EditForm"
'.... etc
end select
end sub

better way of doing this (instead of passing around the userform name as a variable) - or proper syntax for referring to controls outside of the 'active' userform (but an open userform nonetheless)?

Every time I have to do this particular thing with userforms, I completely forget how, and the object browser always leads me on an infinite loop of Application.vbe.activevbproject.vbcomponents.vbe.active....

PS - there may be one slight complication to the process - one of the forms, has a 2-tab page in it, each page having similar (but named differently) fields. So I may need to be able to throw in 'Activepage' or whatnot

View 5 Replies View Related

Master Build Up

Jan 8, 2009

I have a brand Master in below format in sheet 1

brand codebrand Description10a11b12c13d14e

and Product master in sheet 2

product codeProduct Description000roof paint001floor paint002exterior paint003marine paint004wood finishes

I need in sheet 3 for each brand

Brcode + Product CodeBrand Description and Product description10000a roof paint10001a floor paint10002a exterior paint10003a marine paint10004a wood finishes

View 9 Replies View Related

Master And Slave Workbooks

Mar 11, 2009

I have a Master workbook that contains the complete sales for the entire business. This is based on input from 12 different departments. These 12departments have their own slave Excel workbook that they enter information into. The 13 files are all located in the same directory on a network folder.

What I want to do is to automatically gather all the entries from the 12 slave workbooks to the master workbook whenever the macro I am trying to create is run. There is no way of knowing how many new entries each workbook will contain and they have to be added so that that they don't overwrite eachother and so that they are put in sequence after the last row in the master workbook.

Now the information to be gathered is located on the first worksheet in all the three workbooks. The destination sheet in the Master workbook is also the first worksheet in the workbook. The structure of the information that I want to copy is equal on all the worksheets. How would I go about doing so?

View 14 Replies View Related

Update Master Table

Jul 20, 2009

I'm new to Excel Macros and have hit a brick wall on what I would consider
to be my primary workhorse macro! I'm embarrassed to admit that I haven't
mastered coding for movement of data around the spreadsheet much beyond
the macro recorder. I need something tight, efficient, and (instructively commented)!

I've got a spreadsheet consisting of a Master table with 42 rows, (2 rows
per record), and 14 columns of information. To the left of that is another
table consisting of live data from the process. It has anywhere from 1 to
24 rows with 10 columns representing Current/Live/Pre-processed information,
pulled in from the company web location.

Both tables start with an indexing column of 2 character alphanumeric IDs.
They are as follows: C2, D3, D4, E3, E4, F3, F4, G3, G4, H3, H4, I2, I3,
I4, J2, J3, J4, K1, K2, K3, K4.

MASTER TABLE Index Column is B4 to B44 (2 rows per record, in A->Z order)
UPDATE TABLE Index Column is Y4 to Y24 (Could be from 1 to 21 rows (Max),
1 per record, normally in A-Z order.

What I need to do is Key on the Master index column for a particular ID,
against the UPDATE index column. When there's a match I need to take the
updated values from the UPDATE table and assign them to the appropriate
cells locations in the MASTER table.

Example:
Starting with ID "C2" in the MASTER table, check to see if "C2" exists in
the UPDATE Table Index. If there's a match the following cell value
transfers must occur. Z4 -> E4, AB4 -> J4, AC4 -> J5, AD4 -> H4,
AE4 -> K4 and AG4 -> I4. If "C2 is not found in the UPDATE Table then skip
to next ID, (D3).

If ID D3 is found, another cell value transfer must occur. Z5 -> E6,
AB5 -> J6, AC5 -> J7, AD5 -> H6, AE5 -> K6, and AG5 -> I6. If "D3 has no
updates then skip to next ID and so on. Continue checking IDs and updating
until all IDs have been checked.


I'm having difficulty crafting a macro to search 2 columns against one nother,
specify the correct ActiveCell, than offset appropriately to place the desired
value in the correct location.

View 10 Replies View Related

ALL Worksheets Onto Master Sheet

Sep 17, 2008

I have a file with 10 tabs (worksheets) and i would like all the information on each sheet (it's all in exactly he same format, same headings, etc) to automatically feed itself onto a "MASTER" tab. sure i could cut and paste it, but here's the tricky part. as the separate tabs are changed (deletions, additions, edits), i want the MASTER sheet to automatically update with newest information. am i asking for too much from Excel? (I think not, as I've become a firm believer that Excel can do anything - except the laundry!)...

View 9 Replies View Related

VBA Search And Paste (master)

Sep 30, 2008

I am trying to learn VBA and am struggling to figure out how to get started with this problem. On my "Master" sheet in cell B107 is a section where you can enter a search term. The term entered should be found in the headers on my "Site Resources" sheet in A2:H2. If it finds the term in the headers then I want it to copy and paste whatever is below that header into C108 and down in the "Master" sheet. How would I start this code?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved