Macro trouble

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Murrgon (murrgon_at_hotmail.com)
Date: 12/07/04


Date: Tue, 07 Dec 2004 16:04:56 -0500

I am trying to create macro in VC7.1 to instert blank .h and .cpp
files into the current project. I recorded a macro by going to
the menu, selecting File->Add New Item and choosing header file
from the box. I typed in a name and clicked open. I then did
the same thing for the .cpp file. This where I stopped the
macro recording. Everything was fine; the files were placed into
the appropriate folders in the project.

To test it, I deleted the tmp files from the project and off the
disk and ran the macro. However I ended up with my blank header
added to the "Header Files" folder of the project and the .cpp
file added as a subitem of the header. What gives?

The operations being recorded by the IDE for the macro obviously
are not the same as actually using the menu. So what else do I
need to do to get this to put the files in the appropriate places?

Thanks



Relevant Pages

  • Re: Why on earth did MS take away "Record Macro???"
    ... Now I want to resize the cropped image to fill the slide again. ... End With ' PictureFormat ... Excel, recording a macro while I cropped-and-resized, but it didn't record ...
    (microsoft.public.powerpoint)
  • Re: Why on earth did MS take away "Record Macro???"
    ... Now I want to resize the cropped image to fill the slide again. ... Excel, recording a macro while I cropped-and-resized, but it didn't record ...
    (microsoft.public.powerpoint)
  • Re: Word 2003 Macro problem
    ... No, Word 2003 changed the default way it handles inserted pictures, which (I ... suspect) interferes with the recording of a macro. ... I suspect that your insertion and modifications didn't ...
    (microsoft.public.word.vba.beginners)
  • Re: Cant find styles in VBA that were created during import of .htm file to Word
    ... Word VBA. ... When I use Find in the Word app to find paragraphs with one of the style ... and then tried running the same macro recorded ... Stepping through the following macro in VBA, which is just a recording of ...
    (microsoft.public.word.vba.general)
  • RE: looping through series
    ... I tested the macro recording on xl2007 and I see what you mean. ... Sub new_demo ... leave well enough alone ...
    (microsoft.public.excel.charting)