excel - Save As - "filename & date from cell", in 20160127 format -


so i've been looking here , googling quite bit, , can find tips on how code this, nothing on how keep dateformat.

i want save file i've opened in routine, date in particular format, 20160127 (as in source-cell) added filename.

right now, value in fname gets stored 01/27/2016, not in current format.

fname = [cellwithdate]

daily.saveas ("d:\docs\vba\daily summary_us_ " & fname & ".xlsx")

current filename "daily summary_us_.xlsx". can add fname so? , how keep in correct format?

cheers.

or can use:

fname = [cellwithdate].text 

to keep cell's original format (as in source-cell).


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -