View Single Post
 
Old 10-28-2016, 04:08 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The macro (use the code button - # - to format your codes), which is very loosely based on a macro I helped you with, in response to an earlier question.

You have filled a load of string variables from values (that hopefully exist - though there is no error checking), some of which have no apparent purpose, although IO have not delved too deeply, and you have assigned your default path to two separate variables?

Without referring back to the original macro to check, I seem to recall that the process there renamed a sub folder if it existed?

If there is a file in your folder defined at strpath and strdrive called rp.vcp then it can be copied easily enough using the command
Code:
FileCopy strDrive & "rp.vcp", strDrive & FOLDER & "\rp.vcp"
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote