Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can VBA read the row-col location of a selected cell?

I am trying to assign the row and column of a selected excel cell to a
variable name, then return from the VBA procedure to the cell directly below
that cell...without much luck.
Can anybody help?
Thanks...James Hill


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can VBA read the row-col location of a selected cell?

Hi

selection.row and selection.column will give you the information you need
Anyway, you can reach the cell below by writing the instruction below if you
are on the activecell

activecell.offset(1,0).select

Regards
"news.bcentral.com" a écrit dans le message de
news: ...
I am trying to assign the row and column of a selected excel cell to a
variable name, then return from the VBA procedure to the cell directly

below
that cell...without much luck.
Can anybody help?
Thanks...James Hill




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Can VBA read the row-col location of a selected cell?

try using the .offset property

Example:
Dim Cell As Range
Set Cell = ActiveCell.Offset(1, 0)


"news.bcentral.com" wrote:

I am trying to assign the row and column of a selected excel cell to a
variable name, then return from the VBA procedure to the cell directly below
that cell...without much luck.
Can anybody help?
Thanks...James Hill



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
How to read value of a cell in a relative location AnatolyV Excel Worksheet Functions 1 July 20th 09 02:39 AM
Open From Read-Only Location ? Blewyn Excel Discussion (Misc queries) 3 December 17th 06 04:18 PM
automatic offset cell location when there is a value in a selected cell. kuansheng Excel Worksheet Functions 0 February 23rd 06 01:40 AM
how read value from last selected cell? It is possible? how get adress last selected cell? Andrzej New Users to Excel 4 May 30th 05 07:28 PM
Exporting Chart to the selected location Anil[_2_] Excel Programming 0 September 23rd 03 07:03 AM


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