PC Review


Reply
Thread Tools Rate Thread

Cell Position

 
 
mazu
Guest
Posts: n/a
 
      9th Dec 2008
Hi,

I am trying to write down a macro.
I am using the following one line code to find out where "volume" is written
in a cell.
Cells.Find("Volume").Activate
I would like to know the cell number or position, wheather it is B12 or A12
or S12.
Whatever may be the position. I want to track the position, and based on
that position i need to copy some associated values.

Any help or directions will be appreciated

Thanks,

Mazed
 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      9th Dec 2008
you don't give a whole lot of info to streamline anything, but

celladdress = Cells.Find("Volume").address


--


Gary

"mazu" <(E-Mail Removed)> wrote in message
news:A9C090A8-5B33-492B-86D8-(E-Mail Removed)...
> Hi,
>
> I am trying to write down a macro.
> I am using the following one line code to find out where "volume" is written
> in a cell.
> Cells.Find("Volume").Activate
> I would like to know the cell number or position, wheather it is B12 or A12
> or S12.
> Whatever may be the position. I want to track the position, and based on
> that position i need to copy some associated values.
>
> Any help or directions will be appreciated
>
> Thanks,
>
> Mazed



 
Reply With Quote
 
Tom Hutchins
Guest
Posts: n/a
 
      9th Dec 2008
Try something like

Dim c
'Search the active sheet for "Volume"
Set c = Cells.Find(What:="Volume", After:=Range("A1"), LookIn:=xlValues)
'Returns Nothing if not found
If Not c Is Nothing Then
MsgBox c.Address
End If

Hope this helps,

Hutch

"mazu" wrote:

> Hi,
>
> I am trying to write down a macro.
> I am using the following one line code to find out where "volume" is written
> in a cell.
> Cells.Find("Volume").Activate
> I would like to know the cell number or position, wheather it is B12 or A12
> or S12.
> Whatever may be the position. I want to track the position, and based on
> that position i need to copy some associated values.
>
> Any help or directions will be appreciated
>
> Thanks,
>
> Mazed

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get the first used cell position in VBA? =?Utf-8?B?REZEWQ==?= Microsoft Excel Programming 6 23rd Jul 2007 08:38 AM
move within ss by active cell position, NOT by cell names =?Utf-8?B?QkVFSkFZ?= Microsoft Excel Programming 2 23rd Aug 2006 04:34 PM
Displaying a cell relative to the position to another cell Tibbs Microsoft Excel Misc 2 21st Jul 2006 08:28 AM
offset cell position when there is value in a selected cell kuansheng Microsoft Excel Programming 6 28th Feb 2006 01:19 AM
cell position tony hallett Microsoft Excel Programming 1 30th Jun 2005 01:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:53 AM.