Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2018, 07:20 AM
ksor ksor is offline Managing shapes in a WorkSheet ? Windows 10 Managing shapes in a WorkSheet ? Office 2016
Advanced Beginner
Managing shapes in a WorkSheet ?
 
Join Date: Feb 2018
Location: Århus V, Denmark
Posts: 74
ksor is on a distinguished road
Default Managing shapes in a WorkSheet ?

As a part of a genealogy system I want to manipulate the shapes in a family tree.



The rectangles for the PERSONs are named by a PersonID - in the attaced file 29,36 for father and mother and 37,51 for the children.

The triangle representing the couple is named "29+36" - the Id of the father and the mother.

I have not given the arrows names/ID's - I don't even know if I can give them names ... but I've given them some TIPs to show that couples are married and they get some children - the code is all there, take a look !

There are code to create the rectangles for the persons, but it's done automaticly from Access by running the Sub showPerson(...).

Too there are code to move shapes up/down/left/right and a lot of other sub's - just take a look in the VBA section.

There are code to move selected shapes too - BUT I've experienced it's no good idea to select ARROWS for moving - they often loose the connection to the begin/ending points !


I want to be able BY VBA to select a bunch of shapes by just calling a sub - something like:

selectBunchFrom( < name/ID of an arrow > )

In the attached file there is an arrow from a (not shown) ancestor to the Person Id=29 and by calling the sub with that arrow as argument I want to select the 4 rectangles and the triangle - NOT THE ARROWS !

I think someone here can reveal the code for traversing the "kind of tree structure" represented at the end of the arrow from the not shown ancestor.

Hope you understand my explanation ... and want to take the challange ... I simply CAN'T figure out how it's done !
Attached Files
File Type: xlsm TestTREE.xlsm (40.1 KB, 12 views)

Last edited by ksor; 02-14-2018 at 07:27 AM. Reason: EDIT: Maybe it should been in the VBA part instead
Reply With Quote
  #2  
Old 02-15-2018, 12:33 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Managing shapes in a WorkSheet ? Windows 7 64bit Managing shapes in a WorkSheet ? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

If you want a VBA solution posting in the proper forum would have been better
I will move it for you
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 02-15-2018, 01:14 AM
ksor ksor is offline Managing shapes in a WorkSheet ? Windows 10 Managing shapes in a WorkSheet ? Office 2016
Advanced Beginner
Managing shapes in a WorkSheet ?
 
Join Date: Feb 2018
Location: Århus V, Denmark
Posts: 74
ksor is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
If you want a VBA solution posting in the proper forum would have been better
I will move it for you
As I said in my edit there.

I looked for moving it myself ... I don't think I can -right ?
Reply With Quote
  #4  
Old 02-15-2018, 10:09 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Managing shapes in a WorkSheet ? Windows 7 64bit Managing shapes in a WorkSheet ? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

That is correct
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing shapes in a WorkSheet ? Loop through worksheet range to show / hide shapes. wlcdo2 Excel Programming 2 02-22-2017 05:10 PM
Managing shapes in a WorkSheet ? Managing Numbered Lists Andrew H Word 9 10-21-2015 12:28 PM
Managing shapes in a WorkSheet ? Managing PST Files pgrant Outlook 4 01-21-2015 01:07 PM
Managing shapes in a WorkSheet ? How to summarise different worksheet to a summary worksheet samkiewhock Excel 1 09-06-2012 03:34 AM
Managing multiple templates dtenter PowerPoint 0 05-22-2012 09:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft