+ Reply to Thread
Results 1 to 2 of 2

VBA Code "Save Graph to Desktop with sequential numbering"

  1. #1
    Registered User
    Join Date
    03-21-2019
    Location
    Germany
    MS-Off Ver
    Office 365
    Posts
    2

    Question VBA Code "Save Graph to Desktop with sequential numbering"

    Hello dear VBA-specialists,

    im an beginner in VBA-programming and came to the point, where i donīt know what to do next. My code is perfectly working when i save a graph (to jpg) to my Desktop. When i try to save anotherone (it is important to know that you can display different data-sets in one single graph with the same Name: e.g. diagramm5) the just saved Chart is overwritten. I can tell that the Problem can be solved by just adding a sequential numbering to the code, but my VBA skills are waaay to low

    I hope anyone could help me. Would be great! Thankns in advance!

    Here is my code; please donīt be shocked, im just happy that it works somehow

    Please Login or Register  to view this content.
    Have a nice day,
    Jim

  2. #2
    Registered User
    Join Date
    03-21-2019
    Location
    Germany
    MS-Off Ver
    Office 365
    Posts
    2

    Re: VBA Code "Save Graph to Desktop with sequential numbering"

    Good Morning,

    i wanted to add an Explanation of what i mean with "add sequential numbering to the code". I would like to make it possible to save lots of Charts with different used data (.jpg) to my Desktop, all made out of one graph (like above e.g. diagramm5). So it would be awesome if the Charts will be automatically numerated when saved. Like: Diagramm5.1, Diagramm5.2, Diagramm5.3 and so on. At the Moment the saved Chart is just called "Diagramm5" and is always overwritten because the next saved Chart has the same Name (Diagramm5).

    I would be very grateful for any help or idea! Thank you very much

    In another help Forum this code was given me as an solution but i donīt know at which Point i have to insert it into my code, maybe it helps:

    Please Login or Register  to view this content.
    Last edited by jdmuc; 03-22-2019 at 04:36 AM. Reason: Code-Idea added

+ 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. Replies: 2
    Last Post: 06-30-2017, 10:10 AM
  2. [SOLVED] How to save picture to desktop by naming "now" statement!
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2015, 10:51 AM
  3. Receiving "enable content" warning after executing "save as" code
    By phbryan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2014, 12:02 PM
  4. Code only runs when a user hits "Save", not "Save As"
    By cjstewart8 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2014, 07:41 PM
  5. [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
  6. 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
  7. [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

Tags for this Thread

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