N
Glam Journal

What is Curdir in VBA?

Author

William Burgess

Updated on March 21, 2026

What is Curdir in VBA?

The Microsoft Excel CURDIR function returns the current path. The CURDIR function is a built-in function in Excel that is categorized as a File/Directory Function. It can be used as a VBA function (VBA) in Excel.

How do I change directory in VBA?

“ChDir” can be termed as “Change Directory.” By using “ChDir,” we can change the current default directory used in VBA when searching for the files without a fully qualified path.

Is VBA being discontinued?

NET Visual Basic is no longer supported or updated by Microsoft, the VBA programming language was upgraded in 2010 with the introduction of Visual Basic for Applications 7 in Microsoft Office applications….Visual Basic for Applications.

ParadigmMulti-paradigm
DeveloperMicrosoft
First appeared1993
Stable release7.1 (Office 2019)
Influenced by

How do I combine strings in VBA?

To concatenate two string using a VBA code, you need to use the ampersand. You can use an ampersand in between two strings to combine them and then assign that new value to a cell, variable, or a message box. In the same way, you can concatenate more than two values as well.

How do I create a folder in Excel VBA?

The Microsoft Excel MKDIR statement allows you to create a new folder or directory. The MKDIR function is a built-in function in Excel that is categorized as a File/Directory Function. It can be used as a VBA function (VBA) in Excel.

Are CD and chdir the same?

The cd command, also known as chdir (change directory), is a command-line shell command used to change the current working directory in various operating systems. It can be used in shell scripts and batch files.

How do I change the directory in Excel?

How to Change the Default File Location in Excel 2010

  1. Click the File tab and then click Options.
  2. Click the Save tab.
  3. Click in the Default File Location text box.
  4. Edit the existing path or replace it with the path to another folder in which you want all future workbooks to be saved.
  5. Click OK.

Is VBA Dead 2021?

VBA is not as dead as you think. Despite it’s popularity with programmers, TypeScript is not generating as much interest as VBA. In 2020, VBA still shows twice as much interest as a popular programming language that can be used to automate Excel.

Is it worth learning VBA in 2020?

VBA is worth learning if you plan to work mostly with MS-office programs and want to automate the Excel process and exchange data to and from Office applications. If you want to focus on a broader work environment, other languages such as Python could be more useful.

Is there a concatenate function in VBA?

As we do not have any built-in functions in VBA, concatenation in VBA can be achieved by using ampersand (&) operator. We will take the same example which is already we took for the worksheet function. We have “I love” in cell D4 and “India” in cell E4. Now we will combine those two strings in VBA.

How do you use concatenate?

There are two ways to do this:

  1. Add double quotation marks with a space between them ” “. For example: =CONCATENATE(“Hello”, ” “, “World!”).
  2. Add a space after the Text argument. For example: =CONCATENATE(“Hello “, “World!”). The string “Hello ” has an extra space added.