ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Load Vb Functions (https://www.excelbanter.com/excel-programming/271723-load-vbulletin-functions.html)

Maurice[_3_]

Load Vb Functions
 
Hiw do you load VB functions into a VBA EXCEL program. I
specifically want to use the replace function to remove
unwanted characters in .csv file that I am opening and
using the value to make comparisons.

Thanks
maurice

John Wilson

Load Vb Functions
 
Maurice,

You didn't mention what version that you're using.

Copied from an earlier post by Chip Pearson:

<snip
Replace was added to VBA in version 6, or Excel 2000, so it is not
available in earlier versions. In its place, you can use

Result = Application.WorksheetFunction.Substitute(...)

to call the SUBSTITUTE worksheet function from within VBA. See
help in Excel for SUBSTITUTE for syntax details.
<snip

John

Maurice wrote:

Hiw do you load VB functions into a VBA EXCEL program. I
specifically want to use the replace function to remove
unwanted characters in .csv file that I am opening and
using the value to make comparisons.

Thanks
maurice




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com