Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-21-2022, 04:48 PM
eduzs eduzs is offline Simplest way to get row and column number? Windows 10 Simplest way to get row and column number? Office 2019
Expert
Simplest way to get row and column number?
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default Simplest way to get row and column number?


Is there a simpler way to get row and column numbers from the current selected cell in a word table with horizontally or vertically merged cells?
I need to retrieve the text of the cell above current selected cell.
This code does not works (works only if I add 1 to column index) cause there's merged cells in the selected row.
Code:
selection.tables(1).Cell(selection.Cells(1).rowindex-1,selection.Cells(1).columnindex).Range.text
Thanks
__________________
Backup your original file before doing any modification.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simplest way to get row and column number? Count number of Ms between Hs in a column Marcia Excel 6 05-12-2020 06:21 PM
Want a quotient using a constant to show up in column c each time a number is added to column b fibbermcghee Excel 2 12-09-2014 05:48 PM
Simplest way to get row and column number? Formatting numbers in number column MS baby Project 1 06-03-2014 02:43 PM
Simplest way to get row and column number? What's The Best & Simplest Software Program To Backing Up Outlook 2010 highbids Outlook 1 08-23-2010 04:10 PM
Simplest way to get row and column number? Last Number in a Column paulrm906 Excel 1 12-05-2008 07:51 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:29 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