CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Fort Worth Texas
    Posts
    614

    Creating new Worksheets in Excel

    For reasons I won't go into here I am using VC to automate Excel. I have not had any problems except for two things. First I cannot create new worksheets using the Add method. For VC the worksheets Add method requires four arguments, after, before, count, and type. When I do this I get an error message of: "create new sheet class failed". What type of variant types are the arguments suppose to be (short, long, etc). What is the type value (-4167) ????


    Also how does one use the SetFreezePanes? I pass TRUE but nothing happens.

    Thanks

    Jim Bassett


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Creating new Worksheets in Excel

    better ask that question in the Visual C++ Forum.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured