• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Explain line of code related to ListBox

YasserKhalil

Well-Known Member
Hello everyone
What does this line of code mean?
Code:
Me.ListBox1.Column = Array(1)
and this line
Code:
Me.MousePointer = 11
and what if 11 is 0 what it refers to?

Thanks advanced for help
 
Hard to say without the code...

From just the snippet, looks like it's just adding 1 to row 1 col 1 of listbox...

11 = Hourglass shape for mouse pointer.
0 = default
 
Thank you very much for the useful information

Here's the attachement which contains these lines (I'm trying to study it to learn)
If possible I need some explanation of it
 

Attachments

  • Progress Bar.xlsm
    687.9 KB · Views: 1
From my guess, the Array(1) is residual line from testing.
You can run the code without that line with no issues.

Mousepointer is used to track if the process is running and if it is running, then it will cancel out from closing the Userform when "x" is clicked.

Not sure what other portion you'd need help with.
 
Thank you very much Mr. Chihiro for the link
I know immedaite window and local window but these are not enough to get the whole code and the details of each line ..
Hope to explain important lines only not all lines
 
Back
Top