Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. using setvalue in excel automation

using setvalue in excel automation

Scheduled Pinned Locked Moved C / C++ / MFC
helptestingtoolstutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gerald Mercet
    wrote on last edited by
    #1

    I've created an application which automates excel 97 (thanks to the help of the microsoft supports articles Q178749, for example). As i want to automate excel, with office 97, i need of the following library Excel8.olb. So, in my project I would fill some range in an excel worksheet, to do it i use the function setvalue, which takes (with office 97) only one parameter, a COleVariant; but now here is my problem, when i try to do the same thing with office XP( i've seen that i have to replace excel8.olb, by excel.exe) the same function need of 2 input parameters, now!!! Setvalue(COleVariant, COleVariant). One of this parameter is naturally the same that hte one i've used with excel 97, but the second one, i don't what i ve to put! I'm sorry of my approximating english, but if someone could understand me and help me to solve this problem, he will be really great thanks in advance for your help Gerald

    H 1 Reply Last reply
    0
    • G Gerald Mercet

      I've created an application which automates excel 97 (thanks to the help of the microsoft supports articles Q178749, for example). As i want to automate excel, with office 97, i need of the following library Excel8.olb. So, in my project I would fill some range in an excel worksheet, to do it i use the function setvalue, which takes (with office 97) only one parameter, a COleVariant; but now here is my problem, when i try to do the same thing with office XP( i've seen that i have to replace excel8.olb, by excel.exe) the same function need of 2 input parameters, now!!! Setvalue(COleVariant, COleVariant). One of this parameter is naturally the same that hte one i've used with excel 97, but the second one, i don't what i ve to put! I'm sorry of my approximating english, but if someone could understand me and help me to solve this problem, he will be really great thanks in advance for your help Gerald

      H Offline
      H Offline
      HENDRIK R
      wrote on last edited by
      #2

      Well, I think with start of Office XP you've to call SetValue2(COleVariant). That should work.

      G 2 Replies Last reply
      0
      • H HENDRIK R

        Well, I think with start of Office XP you've to call SetValue2(COleVariant). That should work.

        G Offline
        G Offline
        Gerald Mercet
        wrote on last edited by
        #3

        ok i will try, and i'll tell you if it works thanks a lot

        1 Reply Last reply
        0
        • H HENDRIK R

          Well, I think with start of Office XP you've to call SetValue2(COleVariant). That should work.

          G Offline
          G Offline
          Gerald Mercet
          wrote on last edited by
          #4

          sorry to be late to answer you. Just to tell you that your solution works, thanks a lot

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups