Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2006, 12:45 PM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting Unicode From Excel

I'm writing an application in Access 2K3 and I need to load an Excel spreadsheet and read from the cells contained therein.

Everything is working fine, but the Excel spreadsheet contains unicode characters. When in VBA, I read from the cell into a string, the Unicode characters don't come through.

Does anyone know how to get around this? Appreciate the help.

- nullGumby
 
Old December 1st, 2006, 07:02 PM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured something out--this is what I did.
Code:
strReplacementText = StrConv(objWorksheet.Cells(1, 1), vbUnicode)
To expand: I'm taking a non-Unicode string, and replacing non-Unicode characters for Unicode characters. I didn't think the StrConv() would work, but then I just thought of converting the source to Unicode also.

Reminds me of fraction-math from grade school--you first have to turn the whole numbers into fractions before you can use 'em! ;) Thanks.

- nullGumby





Similar Threads
Thread Thread Starter Forum Replies Last Post
UNICODE Conversion in Excel TruckeeBill BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 March 31st, 2008 04:20 PM
about UNICODE hara_sap Java GUI 2 May 6th, 2005 03:19 PM
Unicode MHS Team VB How-To 0 January 18th, 2005 12:03 PM
unicode soodamanir C++ Programming 1 September 20th, 2004 09:02 AM
UniCode Faiz Visual C++ 5 December 17th, 2003 10:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.