LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Jerry Dyben
 
Posts: n/a
Default Compile error for MsgBox copied from Microsoft training example?

From Microsoft training on Loops. Copied the following Do While Loop:

Sub CountRows()

x=ActiveCell.Rpw
y=ActiveCell.Column
z=0

Do While Cells(x,y).Value < ""
x=x+1
z=z+1
Loop

MsgBox "There are "& z &" rows in the current range."
End Sub

Microsoft Visual Basic flaged MsgBox in red and stated, "Expected:end of
statement"
What is wrong?
 
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
Excell VS Office Cathyandrea Excel Discussion (Misc queries) 1 September 19th 05 07:02 AM
Microsoft should put operating system on hardware not software Greg Weller Excel Discussion (Misc queries) 0 September 15th 05 05:11 AM
Disk is Full Microsoft Excel [email protected] Excel Discussion (Misc queries) 1 August 31st 05 02:35 AM
Installing: Microsoft Excel Feature Boblink Excel Discussion (Misc queries) 0 May 13th 05 05:41 PM
recherche into a special range Maileen Excel Worksheet Functions 6 December 28th 04 03:16 PM


All times are GMT +1. The time now is 08:00 PM.

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"