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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,221,902
Messages
6,162,726
Members
451,782
Latest member
LizN

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