Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Calling VB Gurus

Thread Tools
 
Search this Thread
 
Old 19 September 2002, 01:22 PM
  #1  
jods
Scooby Senior
Thread Starter
 
jods's Avatar
 
Join Date: Feb 2002
Location: UK
Posts: 6,645
Received 0 Likes on 0 Posts
Question

Have exported data from Lotus Notes database.
2000 + lines of data and 32 columns.

All data has unprintable character at end of it !

Need to clean it out


' This bit successfully clears the null data that I don't want
Set myRange = ActiveCell.CurrentRegion
myRange.Select
Selection.Replace What:="", Replacement:=" ", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False

'I want this bit to kill non-printing characters but it is misbehaving

myRange.Select
Selection.Clean

Any VB gurus out there
Old 19 September 2002, 01:32 PM
  #2  
Crispin
Scooby Regular
 
Crispin's Avatar
 
Join Date: Jan 2001
Posts: 534
Likes: 0
Received 0 Likes on 0 Posts
Post

first of all whats the culprit char??

get the ascii value of the char - by doing something like this (you probably knew this anyway)


Dim s As String
s = "lnmlJkljnkljnlkjNJKLN" & Chr(0)
Debug.Print Asc(Right$(s, 1))
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
dpb
Non Scooby Related
46
03 October 2015 11:50 AM



Quick Reply: Calling VB Gurus



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