Exploring Shape Group Hierarchy in VBA Excel
Exploring Shape Group Hierarchy in VBA Excel
pdf
Saved to Dropbox • Dec 12, 2022 at 9:27 PM
x
r/excel
arcosapphire • 13 • 6y Join !
11
Share16this Link x
u/americanairlines • Promoted !
SHARE LINK
When you fly, we know you want free
checked bags and seat upgrades. And "
with the American Airlines AAdvantage…
program, you c...
aa.com Learn More
16 Comments sorted by Top ˇ
Leave a comment
DankVapor 26 6y !
Why not just use a user form? You're talking
about a lot of code to do what a user form
does natively.
2 Reply
arcosapphire # 13 6y !
I'm talking about code to create forms, not
the form itself. User forms have a lot of
disadvantages, design-wise.
1 Reply
frescani 6y !
But it sounds like you're doing it within
the worksheet objects instead of using
actual form objects. Also, I hope you're
making use of class modules, b/c I can't
tell that either from your descriptions.
1 Reply
arcosapphire " 13 6y !
Yes and yes. I don't like working with
userforms because the presentation is
so limited.
1 Reply
xlViki 238 6y !
Here's an idea:
arcosapphire ! 13 6y "
Yeah, I could use an extra sheet like that,
but I really hate to do so. Especially as
there's the (incredibly unlikely) possibility of
name collision with an existing sheet, as the
interface items could be added to any
workbook...
1 Reply
arcosapphire ! 13 6y "
Here is an example of a page of my UI. I've
made many of these things as "push
button" report generators, etc. However,
I've had to manually set them up each time I
create some sort of automated report. My
goal is to create an add-in that can more
easily set these up. So on a designated
worksheet, it can add panels (the large
containing blocks), buttons, progress bars,
indicator lights (which each have multiple
statuses with a different color and
message), and present these to the actual
report program in a convenient way.
1 Reply
ericblank01 1 6y !
I've done some work for a jet engine
manufacturer, which manages very
complex assemblies in the engine. The
bills of material, essentially a massive
hierarchy, are managed in just 1 table.
Each part is an entry in the table, and the
entry has an optional ParentID field. A
database query then rebuilds the
hierarchy. A lot like the workaround you
mentioned. Point is, your workaround is
used other places in industry if that helps
build your confidence in it.
1 Reply
arcosapphire ! 13 6y "
1 Reply
pmo86 44 6y !
Can you post a book with a sampe UI on
it? I would like to play around with the
VBA when I get time. I have also done a
lot with HTML forms. You can use CSS,
etc.
1 Reply
arcosapphire " 13 6y !
Well, I have workbooks with an existing
manually-created interface, which
doesn't use any of these principles.
1 Reply
pmo86 44 6y !
Any that you are willing to share.
What do you want your hierarchy to
look like? I am thinking you will need
a class for each level along with one
for the various objects.
1 Reply
arcosapphire " 13 6y !
Okay, I'll be able to provide an
example UI, for the way I'm
currently doing it, in a few hours.
For confidentiality reasons, I'm
genericizing names and removed
my VBA, which is much more
about the report actions than the
UI stuff.
1 Reply
arcosapphire ! 13 6y "
Here is the example.
1 Reply
tjen 365 6y !
Edit: Derp, I got to a computer and looked at
my old file, I was specifically working with
SmartArt designs, so you can probably
safely ignore the below comment, lol, but
I'll leave it there.
1 Reply
arcosapphire " 13 6y !
Thanks for looking into it; unfortunately not
quite the structure I need.
1 Reply
Top posts of March 22nd, 2016