473,738 Members | 11,146 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

shape index values - how do I get them?

I have created two sets of circles using addshape, innercircle(i) and
outercircle(i), and I want to group them in pairs so innercircle(1) and
outercircle(1) are grouped, etc. I am supposed to be able to use the
shapes.range(ar ray()).group command to do this.

This works if I just stick numbers in at random, but I actually want to put
in the index numbers for innercircle(i) and outercircle(i). I have tried
everything I can think of.

How do I get the index value for a specific shape, like innercircle (1) or
outercircle(2) ???

Thanks - I am going crazy

Sep 1 '07 #1
5 8847
Peter Webb wrote:
I have created two sets of circles using addshape, innercircle(i) and
outercircle(i), and I want to group them in pairs so innercircle(1) and
outercircle(1) are grouped, etc. I am supposed to be able to use the
shapes.range(ar ray()).group command to do this.

This works if I just stick numbers in at random, but I actually want to
put in the index numbers for innercircle(i) and outercircle(i). I have
tried everything I can think of.

How do I get the index value for a specific shape, like innercircle (1)
or outercircle(2) ???
I guess you are referring to one of the Office apps as none of that is
in Visual Basic natively.
You may want to check one of the Office or vba groups under the
Microsoft.Publi c hierarchy.

--
Dean Earley (de*********@ic ode.co.uk)
i-Catcher Development Team

iCode Systems
Sep 3 '07 #2

"Dean Earley" <de*********@ic ode.co.ukwrote in message
news:46******** *************** @news.zen.co.uk ...
Peter Webb wrote:
>I have created two sets of circles using addshape, innercircle(i) and
outercircle(i) , and I want to group them in pairs so innercircle(1) and
outercircle( 1) are grouped, etc. I am supposed to be able to use the
shapes.range(a rray()).group command to do this.

This works if I just stick numbers in at random, but I actually want to
put in the index numbers for innercircle(i) and outercircle(i). I have
tried everything I can think of.

How do I get the index value for a specific shape, like innercircle (1)
or outercircle(2) ???

I guess you are referring to one of the Office apps as none of that is in
Visual Basic natively.
You may want to check one of the Office or vba groups under the
Microsoft.Publi c hierarchy.
Yeah ... I want to control powerpoint with Excel, drawing slides using
powerpoint.

I've got the graphics happening in Excel, but I want them on slides.

Now I have a different problem, which (I'm sorry I have nowhere else to
turn) is as follows.

I include the powerpoint class libraries, and they have their own shape
libraries, which are exactly the same except they draw on a slide. However,
I now have two subtly different classes, both called "shape". When I key in

Dim abc As Shape

I get two choices for "Shape", and I seem to have no idea which class I have
created. Is there some way to force it to use the class I want?
Sep 4 '07 #3
Peter Webb wrote:
Yeah ... I want to control powerpoint with Excel, drawing slides using
powerpoint.

I've got the graphics happening in Excel, but I want them on slides.

Now I have a different problem, which (I'm sorry I have nowhere else to
turn) is as follows.

I include the powerpoint class libraries, and they have their own shape
libraries, which are exactly the same except they draw on a slide.
However, I now have two subtly different classes, both called "shape".
When I key in

Dim abc As Shape

I get two choices for "Shape", and I seem to have no idea which class I
have created. Is there some way to force it to use the class I want?
You will need to qualify them with a library name, which I THINK (I
don't use Office or VBA) are Excel and PowerPoint.

Dim abc As Excel.Shape

--
Dean Earley (de*********@ic ode.co.uk)
i-Catcher Development Team

iCode Systems
Sep 4 '07 #4

"Dean Earley" <de*********@ic ode.co.ukwrote in message
news:46******** *************** @news.zen.co.uk ...
Peter Webb wrote:
>Yeah ... I want to control powerpoint with Excel, drawing slides using
powerpoint.

I've got the graphics happening in Excel, but I want them on slides.

Now I have a different problem, which (I'm sorry I have nowhere else to
turn) is as follows.

I include the powerpoint class libraries, and they have their own shape
libraries, which are exactly the same except they draw on a slide.
However, I now have two subtly different classes, both called "shape".
When I key in

Dim abc As Shape

I get two choices for "Shape", and I seem to have no idea which class I
have created. Is there some way to force it to use the class I want?

You will need to qualify them with a library name, which I THINK (I don't
use Office or VBA) are Excel and PowerPoint.

Dim abc As Excel.Shape

--
Dean Earley (de*********@ic ode.co.uk)
i-Catcher Development Team

iCode Systems
Simple and obvious enough to be true.

I will try it tonight.

I haven't programmed in over 30 years, and even then it was assembly
language programming for microprocessors (6502, PDP11 etc). Its a bit of a
jump to go from INC and BNE instructions to class libraries in one go. Fun
and interesting, though.

Thanks for your help.

Peter Webb

Sep 5 '07 #5

"Dean Earley" <de*********@ic ode.co.ukwrote in message
news:46******** *************** @news.zen.co.uk ...
Peter Webb wrote:
>Yeah ... I want to control powerpoint with Excel, drawing slides using
powerpoint.

I've got the graphics happening in Excel, but I want them on slides.

Now I have a different problem, which (I'm sorry I have nowhere else to
turn) is as follows.

I include the powerpoint class libraries, and they have their own shape
libraries, which are exactly the same except they draw on a slide.
However, I now have two subtly different classes, both called "shape".
When I key in

Dim abc As Shape

I get two choices for "Shape", and I seem to have no idea which class I
have created. Is there some way to force it to use the class I want?

You will need to qualify them with a library name, which I THINK (I don't
use Office or VBA) are Excel and PowerPoint.

Dim abc As Excel.Shape
I have no idea why I didn't work this out for myself. It worked brilliantly.
Thankyou.
Sep 5 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3689
by: Andrew Dalke | last post by:
Is there an author index for the new version of the Python cookbook? As a contributor I got my comp version delivered today and my ego wanted some gratification. I couldn't find my entries. Andrew dalke@dalkescientific.com
0
1414
by: Kostas Koukoravas via .NET 247 | last post by:
Hi, I'm developing an application that needs to read a UML diagramfrom Visio. By iterating through the shapes collection of eachShape that represents a Class, I can retrieve the attributes ofthe class and its operations. I cannot retrieve though the value of any other item that existsin the properties dialog of the class. More specifically I needthe Tagged Values of each class shape (to get the Documentationinfo) and the tagged values of...
10
1768
by: coinjo | last post by:
I need to write a program which takes a number as an input and prints a diamond of # and $. The number of rows in the shape is equal to the number entered by the user. Your program should display the shape for both even and odd value of size. For example if user enters number 7 the program should print following shape. # #$# #$#$#
14
5417
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB 7.2 environment, the choices the optimizer makes often seem flaky. But this last example really floored me. I was hoping someone could explain why I get worse response time when the optimizer uses two indexes, than when it uses one. Some context:
4
3975
by: Giox | last post by:
Hello everybody, I have a little problm using custom shape windows form. I 'm using the idea illustrated in MSDN (use of TransparenceKey) and all works well but as spoecified on MSDN this works well only if you set the colors of monitor to 16 or 24 bit. I have to use this application in different computer, (in a demo to some student) so I want to be able to change the color depth programmatically. Is there some trip to do that? the class...
2
6274
by: Vikas Kumar | last post by:
How to Display the Map from the Shape files in ASP.NET?
5
11543
by: sunil borwankar | last post by:
I am trying hard to make Custom Command Buttons of Irregular Shape and of Different colours in Active X Interface Wizard but am not successful. Irregular Shape Buttons i.e.; Triangular, Arrow Shape and Hexagonal are made and are responding in click event but I am not able to provide colors to them. I used Window API programming also but buttons are not getting colored. Kindly help. I am calling Window API "gdi 32" in Modules and Putting Shapes,...
15
2942
by: bH | last post by:
Hi All, I have been looking at javascript drawing from this website : http://www.cwdjr.net/geometricDraw/pentagon_draw.html" and I am wondering why the author made it into two images : upper half then lower half?. Is there a rule that says you can't do it in one set of calculated values for all the points as the points
1
3694
by: pankajprakash | last post by:
Hi, I have a word file which contains numbers of shapes. Each shape contain some textboxes. I am copying that file to another location and assigning some values to those textboxes of those shapes. Now I have to assign the values to those textboxes then I have to ungroup those shape first then only I can assign values those text boxes. Now the problem is that when I ungroup those shapes, they change their locations in the document. I do not...
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.