Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2013, 12:35 AM
ArviL ArviL is offline Active row number Windows 7 64bit Active row number Office 2007
Novice
Active row number
 
Join Date: Feb 2013
Posts: 11
ArviL is on a distinguished road
Default Active row number

Hi



Knows someone a way to get the number of active row (the row of currently selected cell) as a name?

I.e.
1. I will have a name p.e. ActiveR = SomeFormula;
2. When I select any cell on same worksheet, ActiveR equals with row number of selected cell;
3. When I enter the formula =ActiveR into any cell on this worksheet, the displayed row number reflects the cursor position only - not the cell position with formula in it.

I know I can write an UDF to get this, but is there a way to do this using regular formulas only (because the workbook with formula in it will be accessed by different people in different locations and with Excel2007 and later many of them will have problems with Trust Center)?


Thanks in advance!
Arvi Laanemets
Reply With Quote
  #2  
Old 04-15-2013, 01:43 AM
macropod's Avatar
macropod macropod is offline Active row number Windows 7 64bit Active row number Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,374
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

I can't really work out what you're aimning for here. Except for when you're entering a formula, the active cell address (column and row) is displayed on the Ribbon's Home tab, just above the top-left corner of the visible range.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-15-2013, 03:49 AM
ArviL ArviL is offline Active row number Windows 7 64bit Active row number Office 2007
Novice
Active row number
 
Join Date: Feb 2013
Posts: 11
ArviL is on a distinguished road
Default

Active cell is the one where your cursor points at, not one the formula resides in.

Anyway, I decided there is no way to solve this with regular worksheet functions only, so I did find an alternative solution - so the case is closed.

The task was to design a worksheet for keeping a grouped registry of item ID's, where ID's are growing from 1 to 999 for every grop on every calendary day - and I needed to know next available ID for currently entered item irrespective of table ordering.

Arvi Laanemets
Reply With Quote
  #4  
Old 04-15-2013, 04:00 AM
macropod's Avatar
macropod macropod is offline Active row number Windows 7 64bit Active row number Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,374
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by ArviL View Post
Active cell is the one where your cursor points at, not one the formula resides in.
No, holding the cursor over a cell does not make it active. You need to click on it first. A selection can span multiple cells, but only one cell can be active - the one missing the highlight.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA for active slide? AndyDDUK PowerPoint 2 11-12-2012 08:33 AM
Active row number If color is red then active ruby_2014 Excel 2 01-09-2012 01:41 AM
Help on option button active X aligahk06 Excel 0 11-03-2009 11:39 PM
Active Directory ababc Misc 0 09-19-2006 06:18 AM
Active Directory nukkumatti Misc 0 11-16-2005 08:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft