Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel 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 April 16th, 2010, 06:14 PM
Registered User
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default search function and trim function

Hi guys...

i have two excel functions that i am trying to imitate separately using vba for a programming project.
The first question is, how can i imitate the "search" function without using instr, find or search in the program code.

The second question is, how can i imitate the "trim" function without using trim in the code as well

all code suggestions are welcome

thanks lots in advance
 
Old April 23rd, 2010, 09:20 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

For Search, you can load data to an Array/DB and can query it

For Trim, you can use the combination of Left, Right and Mid functions

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT TRIM Function sagrock XSLT 1 November 23rd, 2007 08:39 AM
TRIM, ISTEXT function won't work in Excel VBA code munzer1 Excel VBA 1 May 29th, 2007 09:35 AM
trim function on page 206 jackhsu BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 December 19th, 2006 01:46 PM
custom JavaScript Trim function crmpicco Javascript How-To 2 January 18th, 2006 12:53 PM
Search Function rylemer Pro VB 6 1 March 24th, 2004 11:37 PM





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