Jump to content

Create selectionset with active selection (in VBA)


ronanry

Recommended Posts

Hi everyone,

If you read these line, i hope you're little familar with selectionset in vba

I made some search in google and on a lot of forum with the text i put in the title

but everything i can find is the "prompt for an object to select"

Never ever i was able to launch any command with ACTIVE object selected

 

What i try to do is to launch a macro (when clicking on a button, this part is good) and this macro should use current object to find X and Y (this part is good... but only after selecting a new object)

 

Thanks you for reading and for giving any path to seek on ...

Link to comment
Share on other sites

Thx RenderMan,

 

yesterday in the late evening i found another part of code (ssetObj.Select acSelectionSetLast) that i will check too today

 

Edit : Thx for your answer it's working fine (mine not :P)

Edited by ronanry
Link to comment
Share on other sites

Thx RenderMan,

 

yesterday in the late evening i found another part of code (ssetObj.Select acSelectionSetLast) that i will check too today

 

Edit : Thx for your answer it's working fine (mine not :P)

 

Your welcome. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...