ronanry Posted April 19, 2011 Posted April 19, 2011 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 ... Quote
BlackBox Posted April 20, 2011 Posted April 20, 2011 Look into this: object.ActiveSelectionSet ... Where the object in this case is the ActiveDocument object. Quote
ronanry Posted April 20, 2011 Author Posted April 20, 2011 (edited) 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 ) Edited April 20, 2011 by ronanry Quote
BlackBox Posted April 20, 2011 Posted April 20, 2011 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 ) Your welcome. Quote
Recommended Posts
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.