Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 12-06-2020, 09:28 PM
macropod's Avatar
macropod macropod is online now Declare Constant for Chr(14) Windows 10 Declare Constant for Chr(14) Office 2010
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

If one develops code using early binding, which allows the use of Word constants, but needs to distribute the code using late binding, declaring the constants allows their names to be retained in the code.

Amongst other things, that also makes it easier to see what the late-bound code is doing.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Declare wBk as workbook. Set wBk = workbooks("NewBook.xls") gives error: Subscript out of range. Syed Shabbir Excel Programming 1 09-27-2020 09:35 AM
constant request for password for Outlook.com workingmom Outlook 0 10-20-2016 12:37 PM
Constant Request for Server Passwords danpbphoto Outlook 1 01-12-2015 07:28 AM
Declare Constant for Chr(14) Keep cell in formula constant jprt68 Excel 1 06-26-2012 08:31 AM
Declare Constant for Chr(14) Keeping the top row constant in Excel MSmand Excel 2 07-13-2011 01:14 PM

Other Forums: Access Forums

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