Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Simply silly question

Embarassingly, I don't know how the get the current row
number in VB :-(

Paul

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Simply silly question

paul,

Activecell.Row

should do the trick.

John

paul wrote:

Embarassingly, I don't know how the get the current row
number in VB :-(

Paul


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Simply silly question

ActiveCell.Row

should do it...

hth

-----Original Message-----
Embarassingly, I don't know how the get the current row
number in VB :-(

Paul

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Simply silly question

Also works if you set the variable up as a Integer, which you can use to do
counts and such with.

"Ed" wrote in message
...
Paul:

I have "Dim rngR As String" and use "rngR = ActiveCell.Row" to collect the
row number and use it later ("Range("AB" & rngR).Select").

HTH
Ed

"paul" wrote in message
...
Embarassingly, I don't know how the get the current row
number in VB :-(

Paul





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default Simply silly question

Thank you, John! I know I'll need that in the future as I get more involved
in this.

Ed


"John Gittins" wrote in message
...
Also works if you set the variable up as a Integer, which you can use to

do
counts and such with.

"Ed" wrote in message
...
Paul:

I have "Dim rngR As String" and use "rngR = ActiveCell.Row" to collect

the
row number and use it later ("Range("AB" & rngR).Select").

HTH
Ed

"paul" wrote in message
...
Embarassingly, I don't know how the get the current row
number in VB :-(

Paul









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Simply silly question

Just a point but the return from "ActiveCell.Row" is an Integer

"Ed" wrote in message
...
Paul:

I have "Dim rngR As String" and use "rngR = ActiveCell.Row" to collect the
row number and use it later ("Range("AB" & rngR).Select").

HTH
Ed

"paul" wrote in message
...
Embarassingly, I don't know how the get the current row
number in VB :-(

Paul





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Simply silly question

Well. no it isn't an integer when the row number exceeds 32 thousand
something---I think it is about 32760 or so.
Set it to single if you exceed the 32k limit

Dave

"John Gittins" wrote in message
...
Just a point but the return from "ActiveCell.Row" is an Integer

"Ed" wrote in message
...
Paul:

I have "Dim rngR As String" and use "rngR = ActiveCell.Row" to collect

the
row number and use it later ("Range("AB" & rngR).Select").

HTH
Ed

"paul" wrote in message
...
Embarassingly, I don't know how the get the current row
number in VB :-(

Paul







  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Simply silly question

Said slightly differently, the Integer variable type and the Long
variable type each refer to integers; the range of the Integer type is
-32768 to 32767; the range of the Long type is -2,147,483,648 to
2,147,483,647. Single and Double variable types can include both
integers and non-integers.

Row numbers are always integers; but if the row number is larger than
32,767, it can't be assigned to an Integer type variable, but can be
assigned to a Long Type variable.

Alan Beban

John Wilson wrote:
DH,

When passing row numbers to variables, the recommended way is
to dim them as Long so that you're not constrained by the
32,767 limit with Integer.

John

DH wrote:


Well. no it isn't an integer when the row number exceeds 32 thousand
something---I think it is about 32760 or so.
Set it to single if you exceed the 32k limit

Dave

"John Gittins" wrote in message
...

Just a point but the return from "ActiveCell.Row" is an Integer

"Ed" wrote in message
...

Paul:

I have "Dim rngR As String" and use "rngR = ActiveCell.Row" to collect

the

row number and use it later ("Range("AB" & rngR).Select").

HTH
Ed

"paul" wrote in message
. ..

Embarassingly, I don't know how the get the current row
number in VB :-(

Paul






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
Percentage - How silly I feel asking this question !!! Mark Allen Excel Discussion (Misc queries) 5 November 11th 08 05:50 PM
Silly question Darrell_Sarrasin via OfficeKB.com Excel Worksheet Functions 6 May 11th 07 01:08 PM
Silly question about using dates Zerosumgame Excel Discussion (Misc queries) 5 April 1st 06 03:37 AM
This is so silly... jsc3489 Excel Worksheet Functions 3 November 10th 05 02:06 PM
Silly little annoyance Setting up and Configuration of Excel 6 December 22nd 04 09:33 PM


All times are GMT +1. The time now is 11:52 PM.

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"