Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have a sheet in excel and i want to know how many lines are "used (used line = there is cell(s) with something in it). How can i do that in Macro-VBA ? What is the "simplies(rapid) way"? don't want to use a for, while or somethig like that -- wasss ----------------------------------------------------------------------- wasssu's Profile: http://www.excelforum.com/member.php...fo&userid=1605 View this thread: http://www.excelforum.com/showthread.php?threadid=27731 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
wasssu
Sub CountNonBlankCells() Dim mycount As Integer mycount = Application.CountA(Selection) MsgBox "The number of non-blank cell(s) in this selection is : " _ & mycount, vbInformation, "Count Cells" End Sub Gord Dibben Excel MVP On Thu, 11 Nov 2004 04:22:42 -0600, wasssu wrote: I have a sheet in excel and i want to know how many lines are "used" (used line = there is cell(s) with something in it). How can i do that in Macro-VBA ? What is the "simplies(rapid) way"? I don't want to use a for, while or somethig like that. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() GetBottomRow = TheSheet.Cells.Find(What:="*", SearchOrder:=xlByRows, _ SearchDirection:=xlPrevious).Row LastColumn = TheSheet.Cells.Find(What:="*", SearchOrder:=xlByColumns _ SearchDirection:=xlPrevious).Colum -- mudrake ----------------------------------------------------------------------- mudraker's Profile: http://www.excelforum.com/member.php...nfo&userid=247 View this thread: http://www.excelforum.com/showthread.php?threadid=27731 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
In Excel 2007 chart with multiple lines, mouse doesn't track lines | Charts and Charting in Excel | |||
inserted lines move how to place lines in proper cell? | Excel Worksheet Functions | |||
need to assign a nomber to yes such as y=1 to run a count ? excel | New Users to Excel | |||
Inserting Lines or Copying lines with formulas but without data | Excel Discussion (Misc queries) | |||
excel97 vba to append lines to text file overwriting last 2 lines | Excel Programming |