use of function <target>

  • Thread starter Thread starter R.VENKATARAMAN
  • Start date Start date
R

R.VENKATARAMAN

I find I am able to use <target> only in event modules of sheet or this
workbook but not in standarad module nor as worksheet funciton.. I would
like to have some more ideas of useof <target>. I find I can use
<activecell> instead of <target> in standard module.
thanks regards
 
Target is just the name of an argument. In a worksheet event code procedure
such as Change, VBA passes the target cell(s) to the event procedure.

Target is just a convenient name, you could use anything you want, and as
long as you stay consistent, it will work (try it!).

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
thank you for that clarification. i experimented. I used in worksheet_change
event instead of <target> the argument <cell>. it works.
 
The reason we all use target is partly because it is a meaningful name, but
more relevant is the fact that when you use the dropdowns in the worksheet
code module then it creates an outline procedure with Target already defined
as its range argument name.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top