![]() |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]() I would recommend that you place the csv file in the same folder as the template since one is only useful with the other. Then you can use the location of the template to get the folder name. Code:
ThisDocument.Path & Application.PathSeparator & "Roster.csv" Code:
Dim wshShell As Object, sDocPath As String Set wshShell = CreateObject("WScript.Shell") sDocPath = wshShell.SpecialFolders("MyDocuments") & Application.PathSeparator & "Roster.csv"
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#2
|
|||
|
|||
![]() Quote:
Code:
C:\Users\...\Documents\Custom Office Templates I'll certainly go with your first suggestion. (Can hardly wait to find out what happens when I attempt updates to that csv file.) Hold good thoughts. |
![]() |
Tags |
onedrive, path, windows 10 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excel 2003: VBA "Function" causes "#VALUE!" errors after running "insert/delete row" custom macro | Matt C | Excel Programming | 2 | 01-08-2022 06:03 AM |
Lost folders due to using "Root Folder Path" | Selien | Outlook | 0 | 09-13-2018 03:30 PM |
![]() |
SKE | Word | 1 | 01-28-2016 10:41 PM |
Change "File As" and "Display As" format | davesp | Outlook | 0 | 10-14-2014 12:10 PM |
![]() |
jmaxcy | Excel | 1 | 10-15-2013 01:42 PM |