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. Visual Basic
  4. Programmatically save excel changes

Programmatically save excel changes

Scheduled Pinned Locked Moved Visual Basic
2 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.
  • Z Offline
    Z Offline
    zenithmaximus
    wrote on last edited by
    #1

    Hi all, Im trying to edit an existing excel file then save the changes programmatically without having the save confirmation window. im tryin this codes TargetExcel.Workbooks.Open(Dt.Rows(cnt).Item(2) & Dt.Rows(cnt).Item(1)) TargetExcel.ActiveWorkbook.Password = txt_password.Text TargetExcel.Workbooks.Close() ive even try to use TargetExcel.Application.DisplayAlerts = False it does eliminate the pop ups but will not save the changes on the file... any other codes or approach, tnx in advance.

    -::maximus::-

    V 1 Reply Last reply
    0
    • Z zenithmaximus

      Hi all, Im trying to edit an existing excel file then save the changes programmatically without having the save confirmation window. im tryin this codes TargetExcel.Workbooks.Open(Dt.Rows(cnt).Item(2) & Dt.Rows(cnt).Item(1)) TargetExcel.ActiveWorkbook.Password = txt_password.Text TargetExcel.Workbooks.Close() ive even try to use TargetExcel.Application.DisplayAlerts = False it does eliminate the pop ups but will not save the changes on the file... any other codes or approach, tnx in advance.

      -::maximus::-

      V Offline
      V Offline
      Veloci
      wrote on last edited by
      #2

      Does the program produce any errors? What code are you using to save the document?

      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