Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Return cell co-ordinates

Hi I haven't used vba for a while now and i've completely forgotten how to
return a cells range.

All i need is a simple msgbox that says "you are in cell A4"

Very easy i know, but the grey matter can't cope

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Return cell co-ordinates

Hi Jonny

sub sayhi()
msgbox "you are in " & activecell.address
end sub

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Jonny" wrote in message
...
Hi I haven't used vba for a while now and i've completely forgotten how to
return a cells range.

All i need is a simple msgbox that says "you are in cell A4"

Very easy i know, but the grey matter can't cope

TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Return cell co-ordinates

Hello Julie,

Try this:

sub sayhi()
dim st as string
st = selection.address
msgbox "you are in " & st
end sub

I just found this in a new book I bought the other day.

TucsonBob


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Return cell co-ordinates

Just to add to Julie's response:

You may want:

sub sayhi()
msgbox "you are in " & activecell.address(false,false)
end sub

This removes the $'s from $A$4.



JulieD wrote:

Hi Jonny

sub sayhi()
msgbox "you are in " & activecell.address
end sub

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
...well i'm working on it anyway
"Jonny" wrote in message
...
Hi I haven't used vba for a while now and i've completely forgotten how to
return a cells range.

All i need is a simple msgbox that says "you are in cell A4"

Very easy i know, but the grey matter can't cope

TIA


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Return cell co-ordinates

Hi Dave

thanks for this, didn't know how to do it ..

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Dave Peterson" wrote in message
...
Just to add to Julie's response:

You may want:

sub sayhi()
msgbox "you are in " & activecell.address(false,false)
end sub

This removes the $'s from $A$4.



JulieD wrote:

Hi Jonny

sub sayhi()
msgbox "you are in " & activecell.address
end sub

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
...well i'm working on it anyway
"Jonny" wrote in message
...
Hi I haven't used vba for a while now and i've completely forgotten how
to
return a cells range.

All i need is a simple msgbox that says "you are in cell A4"

Very easy i know, but the grey matter can't cope

TIA


--

Dave Peterson



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
search for x-y co-ordinates twin peaks Excel Discussion (Misc queries) 3 December 17th 09 03:23 AM
sort X-Y co-ordinates twin peaks Excel Discussion (Misc queries) 2 December 15th 09 11:09 PM
X-Y co-ordinates twin peaks Setting up and Configuration of Excel 0 December 15th 09 06:38 PM
Co-ordinates [email protected] Excel Discussion (Misc queries) 20 April 20th 07 04:37 AM
read co-ordinates Ciara Charts and Charting in Excel 1 July 5th 05 06:33 PM


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