Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 12-06-2020, 07:38 PM
Guessed's Avatar
Guessed Guessed is offline Declare Constant for Chr(14) Windows 10 Declare Constant for Chr(14) Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I think the usefulness of constant depends on how you intend to use it. Assuming we assign the value as 8, then these two lines yield significantly different results.

Selection.InsertBreak Type:=8
Selection.TypeText 8

I assumed that VBorNotVB was looking to include the break as a character so it could be included in strings inserted into ranges or selections.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
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 07:52 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