I am trying to use the Excel VBA CLEAN function in MSAccess VBA. Any idea how to do it? Tools>References>Excel Object Library does not work for me.
Thanks
Martin
CLEAN Removes all nonprintable characters from text
Characters 0-31, 129, 141, 143, 144, and 157
5 13224
I am trying to use the Excel VBA CLEAN function in MSAccess VBA. Any idea how to do it? Tools>References>Excel Object Library does not work for me.
Thanks
Martin
CLEAN Removes all nonprintable characters from text
Characters 0-31, 129, 141, 143, 144, and 157
Just passing through, will return later with demo code on how to use Excel's Clean() Function within Access.
I am trying to use the Excel VBA CLEAN function in MSAccess VBA. Any idea how to do it? Tools>References>Excel Object Library does not work for me.
Thanks
Martin
CLEAN Removes all nonprintable characters from text
Characters 0-31, 129, 141, 143, 144, and 157
Back faster than I thought! - 'Make sure to 1st set a Reference to the Microsoft Excel XX.X Object Library
-
Dim objExcel As Excel.Application
-
Dim strStringToClean As String
-
-
Set objExcel = CreateObject("Excel.Application")
-
-
'strStringToClean contains various Control Codes prior to being 'Cleaned'
-
strStringToClean = "P" & Chr(3) & "hi" & Chr(1) & "la" & "del" & Chr$(27) & "phia"
-
-
Debug.Print "Prior to applying the Clean() Function: " & strStringToClean
-
-
Debug.Print "After applying the Clean() Function: " & objExcel.Application.Clean(strStringToClean)
-
-
objExcel.Quit
-
Set objExcel = Nothing
OUTPUT: - Prior to applying the Clean() Function: Philadelphia
-
After applying the Clean() Function: Philadelphia
NeoPa 32,556
Expert Mod 16PB
This thread is a HowTo. Not a question thread!
I will be moving all these posts to their own thread when I can get the time.
This thread is a HowTo. Not a question thread!
I will be moving all these posts to their own thread when I can get the time.
Sorry NeoPa, my oversight.
NeoPa 32,556
Expert Mod 16PB
This thread was split off from Excel Functions in Access
I am trying to use the Excel VBA CLEAN function in MSAccess VBA. Any idea how to do it? Tools>References>Excel Object Library does not work for me.
Martin, what do you mean exactly when you say that? Do you have Excel installed on the computer?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Aaron |
last post by:
I am trying to write a Python script file which analyses data in an
iterative manner. During each iteration, I wish to utilise the Solver
function in Excel to perform some constrained, non-linear...
|
by: SirPoonga |
last post by:
I need a workday function like excel has. I found vba code for access
to dot he task. I want to try and convert it. One of the funcitosn
has the parameter "Optional dtmDate as Date = 0". I need...
|
by: pp |
last post by:
I have copied this code from Excel VBA, to use in a VB.net application:
Dim r as Excel.Range
r=Cells.Find(What:="02/01/2001 22:00:00", After:=ActiveCell,
LookIn:=xlFormulas, LookAt:=xlPart,...
|
by: Vasilis X |
last post by:
Hello.
I want to use the excel function Year( ) (or Day, Month, Minute etc...)
in a Visual Basic .net application.
How can i do this?
I tried Excel.WorksheetFunction but this class doesn't...
|
by: doug9149 |
last post by:
Hello all, I've got some code I wrote using VBA for Excel that I'm trying to recreate using C#.NET. The code autofilters 1 entire column from 1 Worksheet from a Workbook and then appends this...
|
by: Carlos |
last post by:
I'm getting RPC error when I try to register analys32.xll in the VB program.
ErrorCode=-2147417851
Message="El servidor lanzó una excepción. (Exception from HRESULT:
0x80010105...
|
by: steveyjg |
last post by:
This is my first post so I'm not sure if this should be in the .NET forum or the VB forum. Anyway I'm using VB .NET and trying to call the Percentile function. The function needs an Object as a...
|
by: joemo2003 |
last post by:
In a excel automation VBA, a big automation is make up by a number of small automation. When run the VBA, the big automation will run 5 time, how can I make one of the small automation run only once...
|
by: ben3001 |
last post by:
Hi there,
I have an excel spreadsheet with 2 sheets. On 1 sheet i have a list of cars with the prices on. The other sheet has the cars that have been sold on it.
If a car has been sold i enter...
|
by: keirnus |
last post by:
Hello once again...
I made a function in Excel. The function does some error checking within the Excel file.
To be easy for me, I want my code in MS Access to simply call the function in Excel....
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |