+ Reply to Thread
Results 1 to 6 of 6

How to save picture to desktop by naming "now" statement!

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    How to save picture to desktop by naming "now" statement!

    Greetings,
    I want to export chart to the desktop as picture.
    Following code is okey. Following code exports chart to the desktop as picture named Example.
    Please Login or Register  to view this content.
    I want to export chart to the desktop as picture named current date and time. So,I am using "now" statement.
    Following code is not okey.
    Red line need to be corrected.
    Please Login or Register  to view this content.
    As a result picture name must be "2015.06.17.01.20"

    Thanks in advance.
    Last edited by HerryMarkowitz; 06-17-2015 at 09:24 AM.
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  2. #2
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: How to save picture to desktop by naming "now" statement!

    just store now() to any variable with the format command and then put that varible in place of now

  3. #3
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: How to save picture to desktop by naming "now" statement!

    Quote Originally Posted by Kamboj View Post
    just store now() to any variable with the format command and then put that varible in place of now
    So what is correct code?

  4. #4
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: How to save picture to desktop by naming "now" statement!

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: How to save picture to desktop by naming "now" statement!

    Quote Originally Posted by Kamboj View Post
    Please Login or Register  to view this content.
    I know that...
    My question was how to put "now statement" to the original code line...???

  6. #6
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: How to save picture to desktop by naming "now" statement!

    Solved...
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. "Save as" macro to desktop :-(
    By GC1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2013, 02:41 AM
  2. [SOLVED] Code to save sheet as "PDF" to Desktop - Based on ComboBox 1 Value
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2012, 04:37 AM
  3. Macro to File/Save as "Numbers as of [today's date]" on desktop
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-26-2009, 11:38 AM
  4. [SOLVED] use a macro to "Save As" to a generic desktop
    By kyle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2006, 09:30 AM
  5. Replies: 1
    Last Post: 06-30-2006, 08:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1