Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
how can one obtain the current selected cell value
If the user is on range("20c") how can I no this.
Have tried with activecell example in VBA help but does no give me any value Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
how can one obtain the current selected cell value
VaiableX = activecell.value
"Susan Hayes" wrote: If the user is on range("20c") how can I no this. Have tried with activecell example in VBA help but does no give me any value Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
how can one obtain the current selected cell value
Hi Susan,
If the user is on range("20c") I presume you mean Range("C20") . how can I no this. Sub Tester() Dim rng As Range Set rng = ActiveCell MsgBox rng.Address(0, 0) End Sub --- Regards, Norman "Susan Hayes" wrote in message ... If the user is on range("20c") how can I no this. Have tried with activecell example in VBA help but does no give me any value Thanks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
how can one obtain the current selected cell value
Activecell returns the object that is the active cell. This object has many
properties that you can interrogate. For instance, ACtivecell.Value will give you the actual value in that cell. Activecell.Text will give you the text in that cell (for instance, if you have a value of 1 in a cell, but it is formatted as currency, this will give the text value of $1.00 as seen on the worksheet) Activecell.Address gives the address string of that cell, such as $A$1. There are many others, take a look at 'Range Object' in VBA help (Activecell is just a specific example of a range), and look at the properties associated with it to find out about more. -- HTH RP (remove nothere from the email address if mailing direct) "Susan Hayes" wrote in message ... If the user is on range("20c") how can I no this. Have tried with activecell example in VBA help but does no give me any value Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to run relative to current selected cell | Excel Discussion (Misc queries) | |||
Obtain last four characters from a cell. | Excel Discussion (Misc queries) | |||
How do I obtain total for auto filter value selected ? | Excel Discussion (Misc queries) | |||
Excel should enlarge the current selected row for easy reading | Excel Worksheet Functions | |||
plotting chart with user selected range from current workbook | Excel Programming |