Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Objects aren't relative to each other.
I guess you could do Dim bMe as Boolean, shp as Shape Dim oshp as Shape, bGoForward as Boolean for each shp in Activesheet.shapes if shp.name = selection.Name then if not bGoForward then oshp.select exit for end if bme = true end if if bGoForward then if bme and not shp.Name < selection.Name then bme = False shp.Select exit for end if end if set oshp = shp Next but I believe this collection is in the order the shapes were added. -- Regards, Tom Ogilvy "Mike" wrote: I want to write code to select the next object (like hitting Tab) and select the last object (like Shift-Tab). But when I record this macro, it specifies code for selecting the actual object name. Even if I click the relative box. How can I do this so that I don't have to specify the name of the object, so it will work on any set of objects? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating resizing macro - select chart as object? | Charts and Charting in Excel | |||
automatically select object references | Excel Programming | |||
Highlight/Select contents of object with focus | Excel Programming | |||
how to select two separate ranges into range object | Excel Programming | |||
Cannot select object to assign/edit macro | Excel Programming |