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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to get data from vb to excel [modified]

how to get data from vb to excel [modified]

Scheduled Pinned Locked Moved Visual Basic
helplinuxtutorial
5 Posts 3 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.
  • K Offline
    K Offline
    khan2010
    wrote on last edited by
    #1

    Hi all anyone can help me Please i have some problem to transfer data from vb application to excel file textbox value into excel cell. i open excel file by using shell command but after open file how to add data from vb application to excell without delete or replace previouse data. here is shell coding. Dim Book1 As String Dim Directory As String Dim Program As String Directory = Book1 Program = "C:\Program Files\Microsoft Office\Office11\Excel.exe " Book1 = (Directory & "\Export") Shell (Program & Book1) Thanks for advance ___________ Khan786 -- modified at 6:56 Thursday 21st June, 2007

    C V 2 Replies Last reply
    0
    • K khan2010

      Hi all anyone can help me Please i have some problem to transfer data from vb application to excel file textbox value into excel cell. i open excel file by using shell command but after open file how to add data from vb application to excell without delete or replace previouse data. here is shell coding. Dim Book1 As String Dim Directory As String Dim Program As String Directory = Book1 Program = "C:\Program Files\Microsoft Office\Office11\Excel.exe " Book1 = (Directory & "\Export") Shell (Program & Book1) Thanks for advance ___________ Khan786 -- modified at 6:56 Thursday 21st June, 2007

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The shell command is useless. You need to use the visual studio tools for office to control Excel from yuor code.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      K 1 Reply Last reply
      0
      • K khan2010

        Hi all anyone can help me Please i have some problem to transfer data from vb application to excel file textbox value into excel cell. i open excel file by using shell command but after open file how to add data from vb application to excell without delete or replace previouse data. here is shell coding. Dim Book1 As String Dim Directory As String Dim Program As String Directory = Book1 Program = "C:\Program Files\Microsoft Office\Office11\Excel.exe " Book1 = (Directory & "\Export") Shell (Program & Book1) Thanks for advance ___________ Khan786 -- modified at 6:56 Thursday 21st June, 2007

        V Offline
        V Offline
        v1i9n6o7d
        wrote on last edited by
        #3

        Please go through this article http://www.codeproject.com/office/BasicExcel.asp[^]which is present in CodeProject. Vinod

        K 1 Reply Last reply
        0
        • C Christian Graus

          The shell command is useless. You need to use the visual studio tools for office to control Excel from yuor code.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          K Offline
          K Offline
          khan2010
          wrote on last edited by
          #4

          Thanks Mr. Christian

          1 Reply Last reply
          0
          • V v1i9n6o7d

            Please go through this article http://www.codeproject.com/office/BasicExcel.asp[^]which is present in CodeProject. Vinod

            K Offline
            K Offline
            khan2010
            wrote on last edited by
            #5

            Thanx Vinod i hope that it will solved

            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