LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Explanation of code


Hi, I am pretty new to vb and I was wondering if somebody could explai
me how this code works:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim temp As Range
Set temp = Intersect(Target, Range("H3:H16"))
If temp Is Nothing Then
Else
Target.Offset(0, -1) = Target.Offset(0, -1) - Target
End If
End Sub

what does 'Target As Range' mean and how can 'Target' be something i
we dont input anything? Also explain the intersect function please.

Thanks a lot guys. Regards,

Marco

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

 
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
Explanation of when & how to use ( ) { } : ; , ! etc? Paul (Sydney Australia) New Users to Excel 4 May 2nd 07 01:54 AM
Foremula Explanation Prince Ali Charts and Charting in Excel 1 November 28th 06 07:44 PM
A better explanation of help required Elvey Excel Discussion (Misc queries) 3 May 20th 06 05:28 PM
Quick Explanation T De Villiers Excel Worksheet Functions 5 September 21st 05 07:43 PM
Comma explanation George Excel Worksheet Functions 3 December 13th 04 09:30 PM


All times are GMT +1. The time now is 02:59 AM.

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"