Excel与Excel之间的字符问题VBA [英] Character Problem Between Excel & VBA

查看:95
本文介绍了Excel与Excel之间的字符问题VBA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的大师,


尝试生成具有特殊土耳其语字符的土耳其语字符报告("ğüşiöçı") 包含VBA代码中的字符串。


昨天我使用编辑器编辑我的代码并在VBA编辑器中复制代码。


发生了错误。我不再能够生成ğ,ş和ı 字符包括来自VBA的字符串。例如


代码


Sub TRReportExample()



   ;单元格(1,1).Value ="ğüşiöçıĞÜŞİÖÇ I"



End Sub


执行,我得到了一个非常好的&ðüþ iöçý ÐÜÞÝÖÇ I"在A1。


当我输入"ğüşiöçı"时在Excel中然后将相同的字符串复制到VBA中,我得到"?ü?iöç?"。


所以我无法生成ğ,ş和ı字符和土耳其字符集存在问题。


我试图在没有帮助之前几天回滚系统然后尝试卸载并重新安装Office但这也没有帮助。


任何帮助,指导,重新授权都会更加重要,然后才能理解这个问题的根源是什么? 如何让这些ğ,ş,ı字符紧急回来。


问候,


VBA新手。

解决方案

我试图将Word VBA的土耳其字符("ğüşiöçıĞÜŞİÖÇ I")复制到Excel VBA中:


Sub TRUret()



   单元格(2,9).Value = ChrW(287)& "ü" &安培; ChrW(351)& " Iöç" &安培; ChrW(305)& ChrW(286)& "Ü" &安培; ChrW(350)& ChrW(304)& &&;ÖÇ I"
$


End Sub


这会产生

$ b的正确字符$ b

ğ - ChrW(287)


ş - ChrW(351)


ı - ChrW(305) 


Ğ - ChrW(286)


Ş - ChrW(350)


© - ChrW(304)


如果可能的话,我仍然想问你的系统解决方案。


问候,


VBANovices


Dear Gurus,

Trying to generate a Turkish character report with special Turkish character ( "ğüşiöçı" )  containing strings in the VBA code.

I used an editor yesterday to edit my code and copied the code in the VBA editor.

Something wrong happened. No longer I can generate the ğ , ş and ı  character including strings from VBA. For example

when the code

Sub TRReportExample()

   Cells(1, 1).Value = "ğüşiöçı ĞÜŞİÖÇI"

End Sub

executes, I get an awfull "ðüþiöçý ÐÜÞÝÖÇI" in A1.

When I type "ğüşiöçı" in Excel and then copy the same string into VBA, I get "?ü?iöç?".

So I cant generate the ğ,ş and ı characters and there is a problem with the Turkish character set.

I tried to rollback the system several days before didnt help then tried to uninstall and reinstall Office but this didnt help either.

Any help, guidance, recomandations are mored then appreciated what is the source of this problem and  how to get these ğ,ş,ı characters back urgently.

Regards,

VBA Novices.

解决方案

I tried to copy the Word VBA's Turkish characters ("ğüşiöçı ĞÜŞİÖÇI") into Excel VBA :

Sub TRUret()

    Cells(2, 9).Value = ChrW(287) & "ü" & ChrW(351) & "iöç" & ChrW(305) & ChrW(286) & "Ü" & ChrW(350) & ChrW(304) & "ÖÇI "

End Sub

This produces the correct characters for

ğ - ChrW(287)

ş - ChrW(351)

ı - ChrW(305) 

Ğ - ChrW(286)

Ş - ChrW(350)

İ - ChrW(304)

Still I would like to ask your advice for a systematic solution if possible.

Regards,

VBANovices


这篇关于Excel与Excel之间的字符问题VBA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆