Use Application.ActiveWorkbook.Path
for just the path itself (without the workbook name) or Application.ActiveWorkbook.FullName
for the path with the workbook name.
More Related Contents:
- Save excel file multiple times with file names in another workbook.
- Read/Parse text file line by line in VBA
- How do I find the last column with data?
- Excel VBA: Answer gets “stuck”
- How to insert a picture into Excel at a specified cell position with VBA
- Save multiple sheets to .pdf
- Having multiple Excel instances launched, how can I get the Application Object for all of them?
- filter out multiple criteria using excel vba
- Excel VBA autofilter all but three
- How can I create a calendar input in VBA Excel?
- Cells.Find() Raises “Runtime Error 91: Object Variable or With Block Not Set”
- Excel VBA code to copy a specific string to clipboard
- Merge values of column B based on common values on column A
- How to import a table from web page (with “div class”) to excel?
- Range limit conundrum
- How do you run a .exe with parameters using vba’s shell()?
- Excel VBA – Range.Copy transpose paste
- How to determine the last Row used in VBA including blank spaces in between [duplicate]
- How to give a time delay of less than one second in excel vba?
- Changing the date format to yyyy-mm-dd
- Delete all duplicate rows Excel vba
- In Excel, can I use a hyperlink to run vba macro?
- Select Newest Record and Create New Table of Unique Values in Excel
- excel vba freeze pane without select
- How to delete rows in Excel based on criteria using VBA?
- Converting a string representation of a constant into a constant?
- Macro to export MS Word tables to Excel sheets
- Create folder path if does not exist (saving from VBA)
- How to highlight selected text within excel
- How to fix a VBA “type mismatch” error after switching to 64-bit Excel