Manipulating Excel File With VB? - opening and doing data stuff in vb

free web hosting
Free Web Hosting > Computers & Tech > Programming > Programming General > BASIC / Visual Basic (.NET)

Manipulating Excel File With VB? - opening and doing data stuff in vb

connectpal
Part of my VB program is written with :

'(1) open Excel files
currentDate = Format(Date, "YYYY") & " " & Format(Date, "MM") & " " & Format(Date, "DD") & " " & "0000" & " " & "(WIDE)"
filePath = "C:\nbutane\rsview\DLGLOG\RSVIEW\" & currentDate & ".dbf"


When the VB executes, it'll open the file called 2001 11 23 0000 (Wide) with Excel.

My problem is when the file name changed to 2001 11 23 0001 (Wide) , the VB can't access it because it's reading from '0000'. Sometimes the file will change to '0002' .... and so on.

Please help. Thanks.

Reply

kalyan
QUOTE(connectpal @ May 23 2005, 02:41 AM) *

'(1) open Excel files
currentDate = Format(Date, "YYYY") & " " & Format(Date, "MM") & " " & Format(Date, "DD") & " " & "0000" & " " & "(WIDE)"
filePath = "C:\nbutane\rsview\DLGLOG\RSVIEW\" & currentDate & ".dbf"

My problem is when the file name changed to 2001 11 23 0001 (Wide) , the VB can't access it because it's reading from '0000'. Sometimes the file will change to '0002'

I dont understand onething... u have hard coded the 0000 like

" & "0000" & "

so when u want to open 0001 obviously u have to change.......

and .dbf for excel files... when microsoft chaged the exetnsion xls to dbf...and what is the extension for MSaccess files......

anyway how u r opening u r excel files in vb what are the extension or COM objects u have added i hope u cant handle ur excel files with out the extension or DOM object..like ordinary files..

be clear while asking

 

 

 


Reply

CaptainRon
connectpal wrote on May 23 2005, 08:11 AM
kalyan replies on May 17 2006, 10:47 AM
laugh.gif

You are asking him to be clear after 1 year? tongue.gif
Hey Kalyan, anyway how deep did u dig to get to this super old post???? ohmy.gif

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. how to open a file in excel using vb - 3.16 hr back. (1)
  2. open edit save excel file vb6 code - 14.14 hr back. (1)
  3. how to open a file in vb - 15.43 hr back. (1)
  4. read excel file vb .net - 15.91 hr back. (1)
  5. how to open other format file in vb net - 16.54 hr back. (1)
  6. "xls to dbf" freeware - 21.53 hr back. (1)
  7. open excel files with visualbasic - 22.68 hr back. (1)
  8. manipulating text files names in vb6 - 27.57 hr back. (1)
  9. vbs to open and edit excel file - 28.24 hr back. (1)
  10. open file in vb6 dbf - 33.20 hr back. (1)
  11. visual basic 5 open excel file - 35.96 hr back. (1)
  12. format excel file in ms access - 36.14 hr back. (1)
  13. vbscript open excel file for reading - 53.77 hr back. (1)
  14. how to open and edit excel in vb6 - 55.22 hr back. (1)
Similar Topics

Keywords : excel, vb, opening, data, stuff, vb

  1. VB.NET: How To Edit & -90degree Rotate Text In Ms Word File ?
    Need reply urgently (3)
  2. .NET XML Configuration File
    (4)
    Does anyone know an easy way to create an XML configuration file with Visual Basic.NET? I have a
    program that I have been working on and I would like to save certain data between sessions. I have
    heard from many people that XML is the way to go. Are there any good FAQ's....
  3. Windows XP Restart File? Restart Programmatically
    (3)
    Anyone knows where i can find the file or files that windows use to shutdown ? i'm buiding a
    software to shutdown my pc where ever i'm from, its a version beta , but my main problem
    isn't fixed . I hope you can help me . Wrong forum. Moved to Programming. ....

    1. Looking for excel, vb, opening, data, stuff, vb

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for excel, vb, opening, data, stuff, vb
advertisement




Manipulating Excel File With VB? - opening and doing data stuff in vb



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE