944,196 Members | Top Members by Rank

Ad:
Dec 8th, 2006
0

Visual Basic Progress bar?!

Expand Post »
Hi,
I have overcome my program with the DLL files, but now have a slight problem with my progress bar.

Part of my program loads an external spreasheet and exports data to it for printing. Whilst my VB program loads the spreadsheet, thewre is a pause of about 7 seconds which i would like to display in a progress bar.

I need a progress bar that can determine how much percentage of the file has loaded. I can load text files like this using FSO to read the amount of lines and determine how much has loaded, but how can i do this with my spreadsheet?

I would appreciate any help with this as it is urgent.

Thanks,

Matt
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mc_reload87 is offline Offline
3 posts
since Oct 2006
Dec 8th, 2006
0

Re: Visual Basic Progress bar?!

please post the code that loads the spreadsheet.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,963 posts
since Aug 2005
Dec 9th, 2006
0

Re: Visual Basic Progress bar?!

please post the code that loads the spreadsheet.

Right heres the code i am using to open my excel spreadsheet.

I have declared global variables in my module that are used to identify the wokbook and worksheet.

My main form has many different navigation buttons, when a button is pressed, the form opens the excel workbook and the work sheet, then hides the main form and shows the form that uses excel.

'Sets the filepath for the excel workbook and opens it.
Set xlBook = xlapp.Workbooks.Open(App.Path & "\Job Sheet.xls")


'Sets the Sheet to output data to.
Set xlSheet = xlBook.Sheets.Item(1)



frmMain.Hide

frmJobSheet.Show



This is killing me lol, please can you try and help. Thankyou

Matt
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mc_reload87 is offline Offline
3 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Is it possible to VB6 program download into 68HC11 microcontroller?
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Help Me In My Code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC