Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Please Explain Two Lines of Code

Could you please explain the two lines of code?


Private Source as Range

..AddItem Source.Cells(index, 2)
..List(.ListCount) -1, a) = Source.cells(index, 3)


Thank you!
--
ca1358
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Please Explain Two Lines of Code

Hello there,

This looks like part of a userform code for a listbox. Basically it's
adding an item to the list with the first line, which is defined by the
range of Source, whatever that is, with a variable row but always in the
second column (of said range). The second line is changing part of the list
with the third column of the same variable row of the Source range.

Other than that it's very hard to tell without seeing 1) the rest of your
code, or 2) knowing how your workbook is structured.

HTH

--
Regards,
Zack Barresse, aka firefytr, (GT = TFS FF Zack)
To email, remove the NO SPAM. Please keep correspondence to the board, as
to benefit others.


"ca1358" wrote in message
...
Could you please explain the two lines of code?


Private Source as Range

.AddItem Source.Cells(index, 2)
.List(.ListCount) -1, a) = Source.cells(index, 3)


Thank you!
--
ca1358



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
Code to write out all lines of code davidm Excel Programming 3 August 5th 05 04:26 AM
Can someone explain this code to me dht[_2_] Excel Programming 1 September 13th 04 12:03 PM
Lines fo code Neeraja[_2_] Excel Programming 2 October 16th 03 01:07 PM
help reducing lines of code Robert Christie Excel Programming 3 September 14th 03 02:12 PM
Please explain why following code doesn't work.... FMNT80 Excel Programming 2 July 23rd 03 06:07 PM


All times are GMT +1. The time now is 03:01 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"