I am getting error while using writeline() when it was writing text with special character ≠
text = if Q1 ≠ NO
So please help me to handle this error and write this content in new file
I am getting error while using writeline() when it was writing text with special character ≠
text = if Q1 ≠ NO
So please help me to handle this error and write this content in new file
Last edited by AliGW; 09-29-2021 at 04:19 AM. Reason: SOLVED tag removed.
You have marked this as solved - is it?
In Excel, the 'not equal' symbol is usually <>.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Actually there is text "if Q1 ≠ NO" in excel file and when i am using writeline() function to write this text to new file, it is throwing error.
OK - You need to remove the solved tag from your thread, then. Sorry - I can't help myself with your query.
Last edited by AliGW; 09-29-2021 at 03:47 AM.
You need to share the Excel file AND your code so we're not all starting from scratch.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
@nilambari28 ;
If range A1 is housing the text "if Q1 ≠ NO" then, try the following code in which WriteLine method is used.
The magic is the last "True" parameter in the "CreateTextFile" function, which forces the "textStream" object to create the text file as a unicode file.
Please Login or Register to view this content.
Last edited by Haluk; 09-29-2021 at 05:21 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks