I think this is the most reliable way to get the desktop path which isn’t always the same as the username.
MsgBox CreateObject("WScript.Shell").specialfolders("Desktop")
More Related Contents:
- Print function selecting wrong Type of Change option excel vba
- Format Cell Contents
- Excel formula checklist in employees
- How do I put double quotes in a string in vba?
- What is the difference between .text, .value, and .value2?
- Excel VBA – How to add dynamic array formula
- How can I URL encode a string in Excel VBA?
- VBA rounding problem
- VBA – Write all possible combinations of 4 columns of data [duplicate]
- Remove duplicates from array using VBA
- 2 ways for “ClearContents” on VBA Excel, but 1 work fine. Why? [duplicate]
- Excel 2013 VBA Clear All Filters macro
- How to automatically insert a blank row after a group of data
- Get File Path (ends with folder)
- Email a single attachment from folder of files each to a different person
- Sum function in VBA
- Excel error 1004 “Unable to get …. property of WorksheetFunction class” appearing inconsistently
- How can I install/use “Scripting.FileSystemObject” in Excel 2010 for MAC?
- How to get the path of current worksheet in VBA?
- Excel VBA to match and line up rows
- Change font color for a part of text in cell
- Create a new object using the text name of the class
- Excel cell from which a Function is called [duplicate]
- How to extract text within a string of text
- GET pictures from a url and then rename the picture
- Excel VBA – select multiple columns not in sequential order
- How to check whether certain sheets exist or not in Excel-VBA? [duplicate]
- Excel – Using COUNTIF/COUNTIFS across multiple sheets/same column
- Delete all data rows from an Excel table (apart from the first)
- Excel telling me my blank cells aren’t blank