Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I want to define the use of Unicode globally in a VBA macro in Ex.

I am trying to write a macro that finds a Unicode character and replaces it
with an additonal Unicode character but the VBA code just puts a ? in the
code. When recorded it functions fine but if I want to edit the macro later,
it messes it up.

I want to define the use of Unicode characters at the beginning of the VBA
code so as I edit the macro the code reflects what I really want.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default I want to define the use of Unicode globally in a VBA macro in Ex.

You can define variables using the ChrW() function:

Sub ItsGoodToBeTheKing()
ActiveCell.Value = ChrW(9818)
End Sub

--
Gary''s Student - gsnu200855


"Genealogyman" wrote:

I am trying to write a macro that finds a Unicode character and replaces it
with an additonal Unicode character but the VBA code just puts a ? in the
code. When recorded it functions fine but if I want to edit the macro later,
it messes it up.

I want to define the use of Unicode characters at the beginning of the VBA
code so as I edit the macro the code reflects what I really want.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I use macro to find and replace unicode characters CliffG Excel Discussion (Misc queries) 13 April 2nd 09 07:44 PM
Globally define all Excel worksheets as text Paul Excel Programming 2 January 29th 04 09:42 PM
Changing a macro to save as Unicode text Wei-Dong Xu [MSFT] Excel Programming 0 January 21st 04 05:55 AM
Changing a macro to save as Unicode text Jim Rech Excel Programming 0 January 20th 04 02:43 PM
Define a range globally Debbie[_7_] Excel Programming 2 December 24th 03 01:13 AM


All times are GMT +1. The time now is 11:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"