Mail Merge - Polish text in mail body

neveu

Board Regular
Joined
Jan 27, 2009
Messages
225
hello,

i'm using the mail merge VBA to generate email that would contain a template and the dinamic information to be pulled out from an excel file.

the problem is that the message of the text has to be in polish and there are specific characters that are not reqcognized in the VBA.

I've set the template message in VBA and the specific characters from Polish are seen as question marks (?).

I've found the ASCII codes from the characters but it don't manage to make them work in the VBA code of the message body.


any ideas hoe should I proceed? or any other way to solve this?

here is the link with the polish characters:
http://webdesign.about.com/od/localization/l/blhtmlcodes-pl.htm



Code:
 .HTMLBody = "Szanowni Pa?stwo, Informujemy, ?e na Pa?stwa  koncie znajduj? si? faktury, których ter"  & "<br><br>" & _
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I don't really follow your explanation, but you could specify the numerical code shown in the table of Polish characters to insert that character where it is required in the HTML body text:
Code:
.HTMLBody = "First 4 Polish characters: #260; #261; #280; #281;"
Note - there should be an ampersand (&) before each '#' in the above code. I've had to omit the ampersands because otherwise the forum software translates the numerical code to the display character, like this:
Code:
.HTMLBody = "First 4 Polish characters: Ą ą Ę ę"
 
Upvote 0
thank you very much for your help... it works great.

i was trying to use a function chr to convert the ascii code into letter.
but it was that simple.

thanks a million
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

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