Visual Basic Progress bar?!

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2006
Posts: 3
Reputation: mc_reload87 is an unknown quantity at this point 
Solved Threads: 0
mc_reload87 mc_reload87 is offline Offline
Newbie Poster

Visual Basic Progress bar?!

 
0
  #1
Dec 8th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,632
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1496
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Visual Basic Progress bar?!

 
0
  #2
Dec 8th, 2006
please post the code that loads the spreadsheet.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 3
Reputation: mc_reload87 is an unknown quantity at this point 
Solved Threads: 0
mc_reload87 mc_reload87 is offline Offline
Newbie Poster

Re: Visual Basic Progress bar?!

 
0
  #3
Dec 9th, 2006
Originally Posted by Ancient Dragon View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC