+ Reply to Thread
Results 1 to 4 of 4

Code VBA pour exportation Données et tracer de graphique

  1. #1
    Registered User
    Join Date
    05-31-2014
    Posts
    1

    Code VBA pour exportation Données et tracer de graphique

    Bsr à tous.je suis un débutant en VBA actuellement je travaille sur un projet où je dois établir une carte de suivie du taux moyen. Pour cela,je dois aller chercher les données enregistrées quotidiennement dans la base de donnée . Des valeurs enregistrées, je dois exporter leurs moyenne par semaine puis par mois dans un tableau à créer sur une nouvelle feuille du même classeur. Par la suite faire un graphique dynamique qui montrera suivant l’évolution des mois respectifs,l'état du taux moyen ; devra également apparaitre sur le graphique pour comparaison une barre de l'état de l’année N-1(5%) et l'objectif poursuivie(3%) par l'année en cours(N+1). cela pour chaque ligne.j'ai fait mes macro mais se ne marche pas a chaque cours on mes erreur 1004(fichier joint). es ce que quelqu'un pourrait m'aider
    Merci

    Moderator's note: Moved from Excel Programming / VBA / Macros--6StringJazzer
    Attached Files Attached Files
    Last edited by 6StringJazzer; 05-31-2014 at 10:04 PM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Code VBA pour exportation Données et tracer de graphique

    Here:
    Please Login or Register  to view this content.
    you try to clear contents of part of a merged cell (cells E11:H11 are merged, and you try to clearcontents of F11 !!!).
    This causes error 1004.

    Looking at your layout my suggestion is simple: Clear all table in one step:
    Please Login or Register  to view this content.
    PS. Note that you have the same names of procedures in Module6 and in the code uou your sheet: Feuil15 (Suivie Taux nettoyage). Very dangerous situation.
    Last edited by Kaper; 06-02-2014 at 05:51 AM.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    10-18-2014
    Location
    fas
    MS-Off Ver
    yes
    Posts
    1

    Re: Code VBA pour exportation Données et tracer de graphique

    Thanks Jeff. Unfortunately that didn't solve the problem. In fact, I can simply execute the code like shown below and it will still exit on the same row, regardless what the next line contains. It is almost as if it doesn't know what to do with ppShape. I've tried dimming ppShape as 'Shape', 'ShapeRange', and 'PowerPoint.Shape', but none of them even execute the paste line.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Code VBA pour exportation Données et tracer de graphique

    aliiiiii, you probably posted to wrong thread...

+ 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. Tracer arrows won't display as red for cells causing errors
    By Devtim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-12-2013, 09:46 AM
  2. Ip Tracer thru VBA Code
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-24-2012, 04:35 AM
  3. Graphique dynamique Excel 2007
    By saucekorn69 in forum Non English Excel
    Replies: 8
    Last Post: 07-28-2008, 03:43 PM
  4. [SOLVED] Code pour suppression module
    By tip.tiptop in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 05:35 PM
  5. Graphique
    By mom_sandy in forum Excel General
    Replies: 0
    Last Post: 10-19-2005, 02:05 PM

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