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 strongm 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: *

  1. DrBowes

    Reflections VBA - Prevent keyboard input

    Application.Interactive = False
  2. DrBowes

    generate random 4 digit number in range between 0000 and 9999

    I suggest you associate random numbers with numbers 0-9999, then sort in the order of the random numbers. This will give those numbers in random order. Simplest way would do this in a worksheet but you could do it with an array if you prefer (probably). Then load into your databse all at...
  3. DrBowes

    pop-up for Values

    Try putting this in the worksheet module to make it run when column a is changed. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then CurRow = target.row ' Set by your code to whatever row the 'user is working on. . . Worksheets("Sheet1").Range("B" & CurRow).Value...
  4. DrBowes

    Put images from worksheet onto userform

    Ivan I have been on your site a few times before - it is awesome.
  5. DrBowes

    Put images from worksheet onto userform

    Hi, ideas for this one are appreciated. I have a worksheet with several images on it (gifs pasted onto the worksheet). When a userform is opened I would like a random one of these images to be used as the image on an image control on a userform. Can easily select a random image from the...
  6. DrBowes

    Excel - Enter one digit then move to next cell

    You could build a USerform and do this if you feel inclined.
  7. DrBowes

    Randomly sort a collection/array

    Would anybody know a slick way to sort a collection or array into a random order? The only method I can think of at the moment is to put the values into a worksheet, assign random numbers to the next column, sort and reload into the collection/array. Yuk
  8. DrBowes

    Removing unwanted spaces in A1 in lots of diff workbooks

    I think it is the opening, closing and saving of workbooks that takes the time, and I don't know if this can be sped up. Would be interested to know if anyone has a way...
  9. DrBowes

    Removing unwanted spaces in A1 in lots of diff workbooks

    This should help, change "mypath" to point to the directory. Not tested so it might need some tweaks. Sub RemSpacesinA1() Application.ScreenUpdating = False Application.DisplayAlerts = False Dim openwb As Workbook Dim ws As Worksheet Dim mypath As String Dim ssf As Boolean mypath = "C:\"...
  10. DrBowes

    Custom Excel Chart - Stacked Column and Line

    Hats off to you sir! Would give two stars if I was allowed....
  11. DrBowes

    Custom Excel Chart - Stacked Column and Line

    Not sure if this can be done using XL2k. Would like to have a stacked bar chart with a line as well. I am able to combine bar chart and line chart but not have stacked bars. The stack bars will be the achieved volumes of business broken down into categories by month, and the line represents...
  12. DrBowes

    start excel from vba

    You could use VB Script Paste this into notepad and save with a vbs extension. When you run it it will open Excel. Dim MyObj Set MyObj=CreateObject("WScript.Shell") MyObj.Run "Excel.exe"
  13. DrBowes

    Easy Excel Question

    Select the range. Then go to format - cells, then choose custom and enter 00000
  14. DrBowes

    using Row 1 as the header in Excel

    go to file - page setup choose sheet tab enter $1:$1 in rows to repeat at top
  15. DrBowes

    Track New Added Row In Sheet

    select the entire sheet first
  16. DrBowes

    How can I use variable row numbers for Row("14:16").Select

    I would go for: with range(rows(i),rows(j)) no concatenating strings and less dots therefore faster.
  17. DrBowes

    Multiple colors in Excel Cell?

    This can be done with formatting very easily, just select the part of the cell you want to format and go to format cells as usual. You can also have parts bold, different sized fonts or whatever you want in the same way.
  18. DrBowes

    Calculations with Saturday & Sunday

    =IF(WEEKDAY(c3)=7,c3-43,IF(WEEKDAY(c3)=1,c3-44,c3-42)) is one possibility.
  19. DrBowes

    Lookup on 2 different items

    Or if you want to pose: =VLOOKUP(G2,(INDIRECT("B"&MATCH(G1,A1:A6,0)&":c6")),2,FALSE)

Part and Inventory Search

Back
Top