Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2018, 06:39 PM
trevorc trevorc is offline creating a named row for dynamic addressing Windows 7 32bit creating a named row for dynamic addressing Office 2013
Competent Performer
creating a named row for dynamic addressing
 
Join Date: Jan 2017
Posts: 173
trevorc will become famous soon enoughtrevorc will become famous soon enough
Default

Thanks for your help.
Is it also possible to put these 2 lines of code globally/public so I don't have to repeat them in all Sub's.


Code:
        Set tblColumns = ActiveCell.ListObject.ListColumns
        Set ACRow = ActiveCell.EntireRow
Reply With Quote
  #2  
Old 07-06-2018, 02:43 AM
p45cal's Avatar
p45cal p45cal is offline creating a named row for dynamic addressing Windows 10 creating a named row for dynamic addressing Office 2016
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Quote:
Originally Posted by trevorc View Post
Is it also possible to put these 2 lines of code globally/public so I don't have to repeat them in all Sub's.
Sure but if you've got multiple tables you'll need to update tblcolmns anyway, and if the active cell is likely to move row, which by definition it is, your going to have to update that too.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a named row for dynamic addressing Creating Dynamic Ranking Tables ssol2016 Excel 1 10-27-2016 08:47 AM
creating a code to create dynamic text in word ah8471 Word VBA 1 12-29-2015 10:52 PM
creating a named row for dynamic addressing Creating a dynamic summary sheet FenelonPaul Excel 5 09-23-2015 07:11 AM
creating a named row for dynamic addressing Help Creating A Dynamic Footer Mikemo Word 3 02-05-2013 11:58 AM
Dynamic Named Ranges using text hannu Excel 0 06-22-2010 04:42 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:42 PM.


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