Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default reading statements

how do you read statements?? i know you are to read right
to left.
Is it 'property.method.value'
is that how it is set up..what follows the period and so
on?
THANKS!

where can i go to read up on the breaking down of the
statements to understand what it is asking?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default reading statements


-----Original Message-----
how do you read statements?? i know you are to read right
to left.
Is it 'property.method.value'
is that how it is set up..what follows the period and so
on?
THANKS!

where can i go to read up on the breaking down of the
statements to understand what it is asking?
.


It is not so straightforward. You read left to right.
The first item on the left is the object you are referring
to (i.e. Worksheet, Range, etc.). After the period comes
one of the object's properties OR methods, or a child
object (for example, a Worksheet object contains any
number of Range objects). There can be many levels of
these steps, each separated by the period.

Any intoductory book on VBA or Visual Basic would be a
help; I also recommend you learn about the object browser
in the VBA interface, since it can help you see all the
objects, properties and methods of the application you are
working with.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default reading statements

Thanks!
-----Original Message-----

-----Original Message-----
how do you read statements?? i know you are to read

right
to left.
Is it 'property.method.value'
is that how it is set up..what follows the period and

so
on?
THANKS!

where can i go to read up on the breaking down of the
statements to understand what it is asking?
.


It is not so straightforward. You read left to right.
The first item on the left is the object you are

referring
to (i.e. Worksheet, Range, etc.). After the period

comes
one of the object's properties OR methods, or a child
object (for example, a Worksheet object contains any
number of Range objects). There can be many levels of
these steps, each separated by the period.

Any intoductory book on VBA or Visual Basic would be a
help; I also recommend you learn about the object

browser
in the VBA interface, since it can help you see all the
objects, properties and methods of the application you

are
working with.
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default reading statements

object.object.method, or
object.object.method argument, or
object.object.property = value, or
variable = object.object.property

Workbooks(3).Worksheets.Add
Workbooks(3).Worksheets.Add Worksheets(1)
Workbooks(which workbook).Worksheets(which worksheet).Name = "SomeName"
variable = Workbooks(which workbook).Worksheets(which worksheet).Name

"methods" do things. Add, Save, Copy are methods
"properties" are characteristics. Color. Name, Visible are properties
you assign values to properties or read the properties into variables
methods sometimes return a value. Add often usually return a reference to
the thing added.
objects sometimes "raise events" - event handlers contain can code that
executes when the event "happens"

When you see Applies To in a property listing in Excel help, this is a list
of the objects that have that property. It also means that you need one of
these object in order to use that property. Workbooks have Names. Worksheets
have Names, etc.

Visible Property
See Also Applies To Example

When you see Applies To in a method listing in Excel help, this is a list of
the objects that have that method. It also means that you need one of these
object in order to use that method. The Workbooks collection can Add members
to itself. The Worksheets collection can Add members to itself, etc.

Add Method
See Also Applies To Example


"mike" wrote in message
...
how do you read statements?? i know you are to read right
to left.
Is it 'property.method.value'
is that how it is set up..what follows the period and so
on?
THANKS!

where can i go to read up on the breaking down of the
statements to understand what it is asking?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default reading statements

thank you , very helpful
-----Original Message-----
object.object.method, or
object.object.method argument, or
object.object.property = value, or
variable = object.object.property

Workbooks(3).Worksheets.Add
Workbooks(3).Worksheets.Add Worksheets(1)
Workbooks(which workbook).Worksheets(which

worksheet).Name = "SomeName"
variable = Workbooks(which workbook).Worksheets(which

worksheet).Name

"methods" do things. Add, Save, Copy are methods
"properties" are characteristics. Color. Name, Visible

are properties
you assign values to properties or read the properties

into variables
methods sometimes return a value. Add often usually

return a reference to
the thing added.
objects sometimes "raise events" - event handlers

contain can code that
executes when the event "happens"

When you see Applies To in a property listing in Excel

help, this is a list
of the objects that have that property. It also means

that you need one of
these object in order to use that property. Workbooks

have Names. Worksheets
have Names, etc.

Visible Property
See Also Applies To Example

When you see Applies To in a method listing in Excel

help, this is a list of
the objects that have that method. It also means that

you need one of these
object in order to use that method. The Workbooks

collection can Add members
to itself. The Worksheets collection can Add members to

itself, etc.

Add Method
See Also Applies To Example


"mike" wrote in message
...
how do you read statements?? i know you are to read

right
to left.
Is it 'property.method.value'
is that how it is set up..what follows the period and

so
on?
THANKS!

where can i go to read up on the breaking down of the
statements to understand what it is asking?



.



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
reading from SQL Texas Tonie[_2_] Excel Discussion (Misc queries) 0 November 9th 07 10:59 PM
Reading XML Ajit Excel Discussion (Misc queries) 1 October 2nd 07 10:54 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
"Reading"the logic behind too-long command statements Alex Excel Worksheet Functions 2 August 29th 06 08:12 PM
sub for reading Fernando Duran Excel Programming 4 September 15th 03 07:52 PM


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

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

About Us

"It's about Microsoft Excel"