PC Review


Reply
Thread Tools Rate Thread

Built-in string functions not availble

 
 
Mark R. Rutter
Guest
Posts: n/a
 
      24th Aug 2008
Function SUBSTITUTE not available. When I run
Zip = Substitute("2003 Budget", "2003", "2004"), I get error message saying
that Function not defined. Why?
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      24th Aug 2008
There's no function by that name built into any version of Access with which
I'm familiar.

Perhaps you mean the Replace function?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Mark R. Rutter" <(E-Mail Removed)> wrote in message
news:06B49D9D-7A5F-4FEF-B414-(E-Mail Removed)...
> Function SUBSTITUTE not available. When I run
> Zip = Substitute("2003 Budget", "2003", "2004"), I get error message
> saying
> that Function not defined. Why?


 
Reply With Quote
 
Mark R. Rutter
Guest
Posts: n/a
 
      24th Aug 2008
I found the answer.
SUBSTITUTE is a worksheet function with no equivalent VBA function. To use
the worksheet function in VBA, the code looks like,
Zip = WorksheetFunction.Substitute("2003 Budget", "2003", "2004").

The same applies to worksheet functions FIND and SEARCH

"Mark R. Rutter" wrote:

> Function SUBSTITUTE not available. When I run
> Zip = Substitute("2003 Budget", "2003", "2004"), I get error message saying
> that Function not defined. Why?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert an int to a string without built in functions sagar Microsoft C# .NET 3 26th Nov 2008 06:28 AM
Converting Oracle SQL functions to Access built-in functions GVR_Mike Microsoft Access 3 30th Jun 2006 12:33 AM
Built-In Functions =?Utf-8?B?Umljaw==?= Microsoft Access Queries 6 14th Jun 2006 05:52 PM
Can I do this with built in functions? Conan Kelly Microsoft Excel Worksheet Functions 3 6th Dec 2005 08:52 PM
Help for Built in Functions Racer57 Microsoft Access Getting Started 1 1st Jun 2004 07:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:55 AM.