| | |
update excel file from vb
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2007
Posts: 16
Reputation:
Solved Threads: 0
•
•
•
•
hello,
i have to open excel file from vb application. i want to update excel file from vb if i modify some value from vb application. but i dont want msg from excel that "Do you want to save changes in this file?"
please guide me
Thnaks n Regards
from
Pranav Varma
Public xlBook As Excel.Workbook
Public xlSheet As Excel.Worksheet
xlApp.Workbooks.OpenText FileName:= "Text.xls"
cells(1,1)= "Test2"
ActiveWorkbook.Close savechanges:=True xlApp.Quit
•
•
Join Date: Mar 2007
Posts: 24
Reputation:
Solved Threads: 0
[quote=Kees Baltus;333965] Thnx for this code. This one is really upto the mark.
but still i face one problem in the last line
i.e.
ActiveWorkbook.Close savechanges = true
when i m trying above line, then no changes made in that file
but
ActiveWorkbook.Close savechanges
whn i m trying above line, then changes made, but the msg display that do u want to save changes to this file??
i dont want msg. directly it has to save the file.
if possible, please guid me.
again thanks for this help.
•
•
•
•
Public xlApp As New Excel.Application
Public xlBook As Excel.Workbook
Public xlSheet As Excel.Worksheet
xlApp.Workbooks.OpenText FileName:= "Text.xls"
cells(1,1)= "Test2"
ActiveWorkbook.Close savechanges:=True xlApp.Quit
but still i face one problem in the last line
i.e.
ActiveWorkbook.Close savechanges = true
when i m trying above line, then no changes made in that file
but
ActiveWorkbook.Close savechanges
whn i m trying above line, then changes made, but the msg display that do u want to save changes to this file??
i dont want msg. directly it has to save the file.
if possible, please guid me.
again thanks for this help.
•
•
Join Date: Mar 2007
Posts: 16
Reputation:
Solved Threads: 0
[quote=pranavdv;334543]
•
•
•
•
Thnx for this code. This one is really upto the mark.
but still i face one problem in the last line
i.e.
ActiveWorkbook.Close savechanges = true
when i m trying above line, then no changes made in that file
but
ActiveWorkbook.Close savechanges
whn i m trying above line, then changes made, but the msg display that do u want to save changes to this file??
i dont want msg. directly it has to save the file.
if possible, please guid me.
again thanks for this help.
![]() |
Similar Threads
- Open Excel file from Visual Basic (Visual Basic 4 / 5 / 6)
- Unable to create an excel file in VB.net (VB.NET)
- Manipulate Excel file using C++?? (C++)
- How do I use VB to update a shared file (Visual Basic 4 / 5 / 6)
- grabbing source from excel file (was: please, somebody help me!!!) (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Running a scan
- Next Thread: Very Urgent
Views: 7753 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
6 429 2007 access activex add age append application basic beginner birth c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





