Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default use of function <target

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






  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default use of function <target

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)


"R.VENKATARAMAN" &&& wrote in message
...
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








  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default use of function <target

thank you for that clarification. i experimented. I used in worksheet_change
event instead of <target the argument <cell. it works.

Bob Phillips wrote in message
...
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)


"R.VENKATARAMAN" &&& wrote in message
...
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












  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default use of function <target

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)


"R.VENKATARAMAN" &&& wrote in message
...
thank you for that clarification. i experimented. I used in

worksheet_change
event instead of <target the argument <cell. it works.

Bob Phillips wrote in message
...
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)


"R.VENKATARAMAN" &&& wrote in message
...
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














Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automaticly changing average function target cells Phil H. Excel Worksheet Functions 6 March 13th 08 03:00 AM
Target cell reference moves when target is cut and pasted Illya Teideman Excel Discussion (Misc queries) 5 May 31st 07 11:34 AM
Use Vlookup or similiar function to find the row of the target cel J@Y Excel Discussion (Misc queries) 3 February 9th 07 08:37 PM
Target Param Excel Worksheet Functions 1 March 16th 06 08:13 PM
How find if target is object in Worksheet_Change (ByVal Target As.. ?) Gunnar Johansson Excel Programming 3 July 1st 04 09:25 PM


All times are GMT +1. The time now is 08:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"