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 Chriss Miller 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: sedgely
  • Content: Threads
  • Order by date
  1. sedgely

    List Sheet names and tab colors

    I have the following code to list all worksheet names and their corresponding tab colors, it seems to work fine EXCEPT where the tab has no color in which case it shows as black. cna anyone suggest what i am doing wrong? Many Thanks Sub ListWorkSheetNamesAndTabColors() Set wks =...
  2. sedgely

    find records from current shift

    i have a query that returns records with a callTime in the last 24 hours. what i am trying to do is determine which of these records has a calltime within the current shift (shift start times are 06:00 and 18:00) so... if the current time is 11:10 all those records with a calltime greater than...
  3. sedgely

    find last value in a "moving" range Excel 2007

    Hi All i have a range of cells in Excel currently C16:F16, i use the following formula to return the value in the last populated cell from that range =LOOKUP(2,1/($C16:$F16<>""),$C16:$F16) this works great, however the range is going to be expanding i.e. each week a new column will be inserted...
  4. sedgely

    problem with Vista Backup

    hi i have recently got a new Vista machine and am trying to use the backup utility with a Maxtor external USB drive however when i select "backup files" in the backup and restore center it gets as far as "Looking for backup devices" and stays there forever. if i unplug the USB drive and try...
  5. sedgely

    help with chart x axis scale

    i have the following that changes the x axis scale based on a value on a worksheet, it works fine until i change With ActiveChart.Axes(xlCategory) .MinimumScale = minScaleValue .MaximumScale = maxScalevalue End With toWith oSPCCht.Axes(xlCategory)...
  6. sedgely

    help with grouping

    i have a table with the following fields (among others) id priority name i need to count the number of records for each name grouped by priority, my problem is that where there are several records with the same id number for a particular name/priority i only want the result to return 1. for...
  7. sedgely

    sorting named ranges

    i have an excel sheet with 4 named ranges, "pa", "pb", "pc", "pd". I need to sort these by the 11th then 6th column in each range. Can someone point me in the right direction? Cheers, Craig Si fractum non sit, noli id reficere
  8. sedgely

    change function to loop thru range.

    I have the following function thats takes a cell value in the format 0700-1900 and calculates the number of hours elapsed. It works fine but I would like to be able to use a range of cells as the parameter and work through the cells to get the total hours. Can someone point me in the right...
  9. sedgely

    &quot;moving Range&quot;

    Hi all Don't know if this is possible but here goes... i have a view that returns data like: DATE AREA No1 No2 FINAL 01/04/06 firstArea 20 28 .71 02/04/06 firstArea 15 22 .68 . . . 01/04/06 secondArea 14...
  10. sedgely

    copying to another workbook

    i want to achieve 2 things: firstly to copy 2 sheets out of a workbook and into a new book but only the values and formats. and secondly copy one of the sheets into an existing workbook again only values and formats. i have got the first part working but am struggling with the second. the code i...
  11. sedgely

    running a function from a form

    well, now i'm really confused (doesn't take much LOL). i have created the following to clear the contents of any unlocked cells on a number of worksheets. Function clearUserInput() 'Clears any data that has been input by the user 'Application.ScreenUpdating = False Dim shName Dim c Dim wb As...
  12. sedgely

    row number of any cell that contains a certain word

    i need to return the row numbers of any row where the first cell (column A) contains a certain text string. i know how to look for the row number of the first instance of the text, but how do i continue looking down the column for more instances? Option Explicit Function findRows() 'declare...
  13. sedgely

    excel vba running on open

    i have inherited an Excel spreadsheet that has some VBA to do some formatting of the sheets. this runs on opening the workbook, funny thing is though there is nothing in the workbook_open event. i just can't see what is triggering this to run. is there somewhere else this could be being called...
  14. sedgely

    Min and group by

    i have a table with several fields example of the data is: f1 f2 f3 f4 0004 01/04/2006 106.3 rp1 0004 01/04/2006 52.1 dp2 0010 01/04/2006 36.2 sp1 0010 01/04/2006 114.3 fr01 i need to...
  15. sedgely

    invalid pointer

    i am trying to create a dts package that uses a sp to get data and export to a text file. the dts has a sql table as source and .txt file as destination the transform is declare @date1 datetime declare @date2 datetime set dateformat dmy SET @DATE1 =...
  16. sedgely

    pattern matching

    i'm tearing my hair out with this one... i need to return all rows where col1 matches the following pattern: 4 numbers followed by hyphen followed by 4 numbers. e.g. '0000-1200' or '0800-1600' i know this should be fairly straight forward using patindex but i can't get it. Cheers, Craig Si...
  17. sedgely

    function not found error

    i ahve the follwoing activeX script for copying a text file using global variables for the path and file names. '********************************************************************** ' Visual Basic ActiveX Script '************************************************************************...
  18. sedgely

    mail attachement from Global Variable

    i have a task that creates and populates a text file, the text file. i then use an activeX taask to copy and rename the file from using a global variable and yesterdays date as the file name. i now want to email the file as an attachment, but because the file name is different each day, i'm not...
  19. sedgely

    ADO timeout

    i have the following code to fire a SQL sp and bring the data into excel. This was working fine yesterday, but now i am getting a "timeout" error, i know there is a timeout setting that i can set to 0 but not sure of the syntax or where to put it. can anyone point me in the right direction? Sub...
  20. sedgely

    create text file and export

    i have a query that returns several rows of data, i need to export this out to a text file. i have done this several times before but always to an existing text file. is there anyway i can create a new text file from within DTS using one of the values from the returned data as the filename...

Part and Inventory Search

Back
Top