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 Mike Lewis 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: royalcheese
  • Order by date
  1. royalcheese

    First Friday of the Month

    Hi all im trying to find the first friday in specified year / month . The code below adds 6 days on but i think im interperating the DateInterval.day wrong. [code] Date_CurrentFriday1 = Format(DateAdd(DateInterval.Day, FirstDayOfWeek.Friday, DateSerial(RDyear, RDmonth, 1)), ShortFormat) [\code]
  2. royalcheese

    Excel: Find certain cells based on text colour.

    Very You need a loop to go through your list and where the returned color is red then make the next row / column = 1 isred = 123 ' What ever color red is if IsRed = Cells(x, y).Interior.Color then 'make next cell equal 1 Cells(x, y +1).value = 1 end if
  3. royalcheese

    Randomizing images on a userform and stopping on click

    Make an array with your pics file paths and then nest this in a do until button pressed loop
  4. royalcheese

    Searching question

    ill give it a go , many thanks
  5. royalcheese

    Searching question

    Hi all I know its friday and I have a question on searching I have inherited a large DB , and want to find any tables that have the value '161941' in any of the cells , is this possible to do (relitively) simply Many thanks C
  6. royalcheese

    Automatic save Excel file in latest format

    Hi Maybe something like ActiveWorkbook.SaveAs Filename:="C:\Book1.xls", FileFormat:=xlExcel9795 Look at the xlFileformat in the help, for more options Hopes this helps Chris
  7. royalcheese

    Getting the Max of Counts

    use tempdb IF EXISTS (SELECT * FROM DBO.SYSOBJECTS WHERE ID = OBJECT_ID(N'[#temp]') AND OBJECTPROPERTY(ID, N'ISUSERTABLE') = 1) DROP TABLE [#temp] go use agresso select a.project, a.department, count(a.department) as countofdep into dbo.#temp from atsproject as a join acrclient as b on...
  8. royalcheese

    Getting the Max of Counts

    apologies , there are many many different combonations of data current proj dep Count of dep 5210730 730 26 5210800 800 5 5211442 440 26 5211442 442 29 5211442 442 26 * this one wanted return 5210730 730 26...
  9. royalcheese

    Getting the Max of Counts

    Hi all , relitivly new to SQL and i have made this so far .... select a.project , a.department , count(a.department) from atsproject as a join acrclient as b on b.municipal = 'Y' and b.client = a.client where a.project = 'ECP12674' group by a.project , a.department order...
  10. royalcheese

    Excel VBA Pasting to Columns Based on The Date

    look into using the macro recorder , this can give you the copy and paste , code - coloring etc. secondly look at making 2 while loops, to loop firstly through your data headers , then loop through the data to match header e.g. (code typed not checked but along these lines) [/code] 'loops...
  11. royalcheese

    Adding option to a right click on a outlook menu ?

    Hi all , This is the first time i have ever tried to add into a menu option in a microsoft application. I want to add an option in outlook 2003 , when you right click on a resolved name, in a email. Two things i would like to know how to do 1) I want to be able to return their first and...
  12. royalcheese

    Comparing values

    attually the round function is more applicable , (sorry it is early in the morning , not woken up yet)
  13. royalcheese

    Comparing values

    if you format "a" and "b" (look at the format function) then compare this issue should disappear , the number shown is very small
  14. royalcheese

    Adding a digital signature

    After searching the answer is as follows , download the pvkimporter from MS and then run in the command line pvkimprt -import LC2006A.spc mykey-2006.pvk Thanks for any views. C
  15. royalcheese

    Adding a digital signature

    Hi all I have never really come across Digital Signatures before , but I have recently modified a modules in excel and need to re-add a digital signature to it , I have been given two files LC2006.spc mykey-2006.pvk and a pass phrase for one / both ?! I am assuming that I need to add a...
  16. royalcheese

    Excel : Custom Button not showing on other PC

    Hi all I have a workbook and a custom menu with two buttons on it , Works great , but when i open on a different machine the bar is there but no buttons . How do i get the buttons to say ? Many thanks in advance. Chris
  17. royalcheese

    Spaces in file path causing issues

    ahh yes on letter out of place this works fine now , cheers guys ! Mucho Thanks
  18. royalcheese

    Spaces in file path causing issues

    No change if i take it out , the file path is stored with out the "\", so this is needed to make the file path continue and seperate the file from the path.
  19. royalcheese

    Spaces in file path causing issues

    Joe At work This looks good but i get issues I am calling like this newupload = ShowShortName(uPfUpload & "\" & nsfil) uPFupload : contains the folder name nsFil : contains the file name I have ensured that the scripting dll is installed. the errors comes on Set f =...
  20. royalcheese

    Spaces in file path causing issues

    Hi All I have a function that ftps a file from a to b , the issue im getting is when the file path is larger / has spaces I think as an example "C:\Program Files\File Program\Upload" - Errors because of spaces I think "C:\Upload" Works fine. My Question is how can get the Longer string...

Part and Inventory Search

Back
Top