> Hi Jean-Guy,
>
> This is my actual code line, and I get an invalid file name, any ideas?
> I check the variables in the debugger and they do have the data in them.
>
> Thanks
>
>
> .SaveAs "C:\Job Files\" & JobNumber & "_" & JobName &
> "\Miscellaneous\test.doc."
>
>
>
>
>
>
>
> "Jean-Guy Marcil" <NoSpam[ at ]LeaveMeAlone> wrote in message
> news:%235rCMeuxGHA.5068[ at ]TK2MSFTNGP02.phx.gbl...
>> Lumpjaw was telling us:
>> Lumpjaw nous racontait que :
>>
>>> Hello.
>>>
>>> I realized this morning that a prievous post may not have been clead.
>>> This is what I a trying to do through a word userform.
>>>
>>> I gather information from the user, this information among other
>>> things contain two parts to a folder name that will be created. Some
>>> of this information is also transfered into several Word documents.
>>> So...
>>> I have a folder name that looks like this, after it is created.
>>>
>>> c:\Job Files\B 06-100.Kodak Expansion\
>>>
>>> Variables;
>>> JobNumber = B 06-100
>>> JobName = Kodak Expansion
>>>
>>> I have several sub-folders of this newly created folder. I want to
>>> save say test.doc into
>>> c:\Job Files\B 06-100.Kodak Expansion\Miscellaneous\
>>>
>>> How can I save to this directory using the variable names, instead of
>>> the file names, the reason is because this is always gonna change.
>>> Thanks for the reply.
>>
>> ActiveDocument.SaveAs "C:\Job Files\" & JobNumber & "_" & JobName &
>> "\Miscellaneous\Test.doc"
>>
>> I would recommend the "_" instead of the "." (dot) for the folder name as
>> it is easier to see and less prone to create errors.
>>
>> --
>> Salut!
>> _______________________________________
>> Jean-Guy Marcil - Word MVP
>> jmarcilREMOVE[ at ]CAPSsympatico.caTHISTOO
>> Word MVP site:
http://www.word.mvps.org>>
>
>