Attaching Hex value 0x0D to a text output

psycoperl

Active Member
Joined
Oct 23, 2007
Messages
339
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
  3. Web
Good Afternoon,
I am am generating a list of values which will be encoded as a QRCode. Using the function CreateQRCodeList. What I need to do is to apend to each line as it is being written the Hex byte value of 0x0D which signals a carriage return in the QRCode. How can I append this?

Thank You





Code:
Function CreateQRCodeList(strQRCode As String)
   
   Dim strLogFile As String
   strLogFile = Quick_QRCode_List & QUICK_Term_Semi & QUICK_Term_Year & "\QRCodeList_" & fOSUserName & "_" & Format(Now(), "YYYYMMDD_HHMM") & ".txt"
      
   Open strLogFile For Append As #1
 
    Print #1, strQRCode
 
   Close #1
End Function
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,261
Messages
6,171,080
Members
452,377
Latest member
bradfordsam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top