Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: cassidybklyn
  • Content: Threads
  • Order by date
  1. cassidybklyn

    Report headers in Excel report not printing.

    Gentlement, I have some weired stuff going on with my VB6/Excel module. The first time through, my program ran and produced the desired spreadsheet with the headings and all. But subsequent runs do not produce the same result. After the spreadsheet is generated and made visible, when I click...
  2. cassidybklyn

    Run-time error 9 - Subscript out of range

    Gentlemen, I am executing the following VB6/Excel: Dim xlApp As Object Dim xlWbk As Object Dim xlWksht As Object Set xlApp = CreateObject("Excel.Application") Set xlWbk = xlApp.Workbooks.Open("C:\BiWeeklyPeriod.xls") Set xlWksht = xlWbk.Worksheets("Sheet1") <======= this line Then I got the...
  3. cassidybklyn

    How to insert/center multiple page header in a spreadsheet using vb6.

    How everyone, how can I insert and center multiple page header in excel spreadsheet. I intend to use: With Activesheet.PageSetup .CenterHeader = "&""Arial,Bold"" NEW YORK CITY TRANSIT AUTHORITY " Telecommunication and Information Services Division Project Tracking System...
  4. cassidybklyn

    How to select an unspecified range in a worksheet

    Hi everybody, I working with vb6 and I currenlty have a spreadsheet with data up to the range of (A2:G143) that requires sorting. But I do not want to hard code this range because the range of data in the spreadsheet may change at anytime (either more data or less data). How can I tell it to...
  5. cassidybklyn

    How to display blank date on a VB form.

    Good morning all, is there a format or way of displaying a blank on a form control (textbox)? For example, If a date field is blank, I want to display "_/_/2007". Thanks. Cassidy
  6. cassidybklyn

    Spreadsheet count and Totals printing on separate pages.

    Hello everyone, I need your assistance: I am runing VB 6.0. I created a spreadsheet from access table. Everything is working fine, except that I am generating both Total and count, but when I print the spreadsheet, the count prints on one page and the total prints on the next page. How can...
  7. cassidybklyn

    Export Excel spreadsheet to access table

    Please can anyone assist me with the VB code to export a spreadsheett to access table(database). I am doing this and it's telling me that object is required: DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "ExcelImport", "C:\UnclaimedChecksover60days_20070515_12.51.38.xls", True...
  8. cassidybklyn

    Sum Function is overriding Count Function in Excel VB.

    Hello everyone, I am working with VB6. I have a module that counts unique items in a spreadsheet. In the same spreadsheet, I want to sum a column that has Currency. The count function works okay, but when I try to sum the column that has the dollar value, it overrides the count. In...
  9. cassidybklyn

    Make Page header bold.

    Good morning Skip, I am trying to make my page header bold. How can I get this done? With ActiveSheet.PageSetup .CenterHeader = " Class of 2007". End with. How can I make the "Class of 2007" bold? Thanks. Cassidy.
  10. cassidybklyn

    Format Currency problem

    Gentlemen, please bear with me: I am having a problem farmating one column("D"), whose value is currency. I am using this code which I got from recording a macro: Selection.NumberFormat = "$#,##0.00;[Red]$#,##0.00" Columns("D:D").select. Using the above code, all numbers in the spreadsheet...
  11. cassidybklyn

    VB code to put page numbering on a spreadsheet

    Gentlemen, please bear with me. I learned that you can ask more than one question in one thread. how can I use vb code to put page numbering on a spreadsheet? Example: Page 1 or 2. Thanks. C.
  12. cassidybklyn

    VB code to put page header on excel spreadsheet

    Could someone please show me how I can put a page header on a spreadsheet, using VB6. Also, I want the header to repeat at every page when printed. In the routine that does the PageSetup, I don't know if the code below can accomplish that: With ActiveSheet.PageSetup .PrintTitleColumns =...
  13. cassidybklyn

    How to do page setup in an excel spreadsheet through VB

    Hello everyone, Please could someone give me a little directive on how to a page setup in excel using vb code: Example: I need to set the Margin for the spreadsheet, gridline, repeat headers, etc. Thanks. C.
  14. cassidybklyn

    How not to delete/overlay a saved spreadsheet.

    Hello everyone. I generated an excel spreadsheet from vb and saved it to my local drive, but I want to append today's date and time to the file: example: xlWbk.SaveAs("myspreadsheet_05/09/2007_00:00:00.xls") The next time I generate this same spreadsheet, I do not want to overlay the previous...
  15. cassidybklyn

    Sorting Data in Exel spreadsheet using VB6.

    Gentlemen, I am performing a count of unique items using "Subtotal" function. It is giving me count of the unique items everywhere they appear in the column. What I want to do is first sort the unique items so that all unique items appear in a single location, then afterwards I can do my...
  16. cassidybklyn

    Unable to &quot;Quit&quot; excel while in VB mode

    I am trying to quit excel after processing. Below is what I am doing: dim xlApp As Object dim xlWb As Object dim xlWksht As Object Set xlApp = CreateObject("Excel.Application") Set xlWb = xlApp.Workbooks.Add Set xlWksht = xlWb.Worksheets("Sheet1") process - process- process "" ""...
  17. cassidybklyn

    How to set excel column width from VB

    Gentlemen, I am using Visual basic 6.0 to import data from access table to excel spreadsheet. The process wss successful, but one of the fields in the spreadsheet is a date field but it does not display the date, rather it displays "#######". when I go into the spreadsheet and manually widen...
  18. cassidybklyn

    Using VB6, how can I count group of items in excel spreadsheet fields?

    Gentlemen and ladies please assist. I populated an excel spreadsheet with data from access table, using "CopyFromRecordset" function. The excel spreadsheet has been populated accurately. My problem is that in the xls spreadsheet, there are 5 fields and each field has multiple occurence of item...
  19. cassidybklyn

    Using VB6, how can I count group of items in excel spreadsheet fields?

    Gentlemen and Ladies, Please I nee your assistance. I am coding with vb6. I populated an excel spreadsheet using data from access table. I used the "CopyFromRecordset" to populate the excel spreadsheet. Now, my xls spreadsheet has 5 fields with records(items). Each item in the field has...
  20. cassidybklyn

    Using VB6, how can I count group of items in excel spreadsheet fields?

    Gentlemen and Ladies, Please I nee your assistance. I am coding with vb6. I populated an excel spreadsheet using data from access table. I used the "CopyFromRecordset" to populate the excel spreadsheet. Now, my xls spreadsheet has 5 fields with records(items). Each item in the field has...

Part and Inventory Search

Back
Top