Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Getting handle to Row # dynamically

Hello Experts,

1. I let the user select a range by foll code.

Dim Rg As Range
On Error Resume Next
Set Rg = Application.InputBox(prompt:="Select range", Type:=8)
If Rg Is Nothing Then
MsgBox "Operation Cancelled"
Else
Rg.Select
End If
2. User selects a row, for example say Row 10.
3. I want to perform a calculation on ColumnG and ColumnH of Row 10
(starting from row # 10 till end of value in columns G and H)
4. How will I get handle to column G and column H of Row 10.

Thanks in advance

Regards
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Getting handle to Row # dynamically

startrow=Rg.row
lastrow=Cells(rows.count,"G").end(xlup).row

HTH

"Prakash" wrote:

Hello Experts,

1. I let the user select a range by foll code.

Dim Rg As Range
On Error Resume Next
Set Rg = Application.InputBox(prompt:="Select range", Type:=8)
If Rg Is Nothing Then
MsgBox "Operation Cancelled"
Else
Rg.Select
End If
2. User selects a row, for example say Row 10.
3. I want to perform a calculation on ColumnG and ColumnH of Row 10
(starting from row # 10 till end of value in columns G and H)
4. How will I get handle to column G and column H of Row 10.

Thanks in advance

Regards

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
What is keyboard shortcut equivalent to drag the fill handle JZ Excel Discussion (Misc queries) 2 July 31st 06 06:25 AM
Fill Handle Bob Umlas, Excel MVP Excel Discussion (Misc queries) 0 March 28th 06 04:48 PM
Fill handle formula neeraj Excel Worksheet Functions 9 September 13th 05 01:46 AM
Fill Handle Across Columns SenojNW Excel Discussion (Misc queries) 4 August 8th 05 07:23 PM
3-d reference not adjusting when using Fill Handle to copy down gall Excel Worksheet Functions 3 November 24th 04 06:42 PM


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