#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Interpretation

I have the code below, what is the function of the line:

" ColOut = ColOut + 1 " ??????????????


HeaderRow = Range("Header").Row
Sheets("Output").Cells.ClearContents
RowIn = HeaderRow + 1 ' first row
RowOut = 1

Do
ColOut = 1
Sheets("Output").Cells(RowOut, ColOut) = "$INPUT"
ColOut = ColOut + 1
ColIn = 2
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Interpretation

It increments the value of the variable ColOut.

Hope this helps.

Pete

On Jul 13, 5:42 pm, M&M wrote:
I have the code below, what is the function of the line:

" ColOut = ColOut + 1 " ??????????????

HeaderRow = Range("Header").Row
Sheets("Output").Cells.ClearContents
RowIn = HeaderRow + 1 ' first row
RowOut = 1

Do
ColOut = 1
Sheets("Output").Cells(RowOut, ColOut) = "$INPUT"
ColOut = ColOut + 1
ColIn = 2



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 524
Default Interpretation

Fri, 13 Jul 2007 09:42:01 -0700 from M&M
:
I have the code below, what is the function of the line:

" ColOut = ColOut + 1 " ??????????????


It's a standard programming way of adding 1 to the ColOut variable.

I realize it looks odd, but in programming the = sign has two
meanings, "is equal to" and "is replaced by" This is an example of
the latter use, just like in
ColOut = 1

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
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
Scattergraph: Meaningful interpretation JohnH[_2_] Charts and Charting in Excel 4 July 1st 07 09:52 AM
Interpretation of T test results Chris Excel Worksheet Functions 0 January 29th 07 05:39 PM
chitest and interpretation of the result Christine Excel Worksheet Functions 1 May 5th 05 02:00 AM
Sum(if ... multiple conditions ... Interpretation? Ken Excel Discussion (Misc queries) 6 December 16th 04 10:23 PM


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