Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
How Does VBA Know Which Cell Its On
Just curious to know something. If I were to select any cell on a worksheet,
how does VBA know what that cell is. In other words, I know I can select a cell from a macro using Range("A1").Select, for example, but what would the line of code be that activates or identifies a cell when I click on it. Does that make sense? -- Regards... |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
How Does VBA Know Which Cell Its On
msgbox activecell.address
-- Don Guillett SalesAid Software "cincode5" wrote in message ... Just curious to know something. If I were to select any cell on a worksheet, how does VBA know what that cell is. In other words, I know I can select a cell from a macro using Range("A1").Select, for example, but what would the line of code be that activates or identifies a cell when I click on it. Does that make sense? -- Regards... |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
How Does VBA Know Which Cell Its On
Awesome, how simple was that...
Thanks Don. -- Regards... "Don Guillett" wrote: msgbox activecell.address -- Don Guillett SalesAid Software "cincode5" wrote in message ... Just curious to know something. If I were to select any cell on a worksheet, how does VBA know what that cell is. In other words, I know I can select a cell from a macro using Range("A1").Select, for example, but what would the line of code be that activates or identifies a cell when I click on it. Does that make sense? -- Regards... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
Instead of a negative number, I'd like to show zero... | Excel Worksheet Functions | |||
Cell color based upon cell value | Excel Discussion (Misc queries) | |||
cell color index comparison | New Users to Excel | |||
up to 7 functions? | Excel Worksheet Functions |