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 TouchToneTommy 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. lucrahouse

    Automating access to a linux web server

    I would like to automate access to a linux web server to download excel spreadsheets. Another department places results in a spreadsheet and places the spreadsheets on a web server. They granted me permission with a logon and password, and through internet explorer, go to the web server click on...
  2. lucrahouse

    how to use Class Modules

    I found one major flaw in my thinking. I just read on page 293 in "EXCEL 2000 VBA" by Bullen, Green, Bovey, & Rosenberg that "if you supply a key value for each memeber of the collection, the keys must be unique. You will get a run-time error when you attempt to add a new memeber to the...
  3. lucrahouse

    String manipulations

    I have used the following: MyString = "some where over the rainbow?" MyAnswer = InStr(1, MyString, "w") MyAnswer will equal 6 If I was looking for the letter "q" then MyAnswer will = 0 Hope this helps.
  4. lucrahouse

    how to use Class Modules

    You are correct. I have several errors in my code that I need to clean up. Sorry for the bad code. As you can see I'm not very good at this. Thank you for pointing this out.
  5. lucrahouse

    how to use Class Modules

    I'm trying something new. I want to learn how to use class modules, because I think it will take less time to process. Previously, I would read the data into table arrays and spit out the results in a results table. Here is an example of what I'm trying to accomplish. Here is my Data. 1 AIG...
  6. lucrahouse

    Send mail if a certain file is in a certain folder.

    Here is some code I cut from various projects that I thought would help you accomplish your goal. I didn't verify every variable name, so you have to be careful. Naturally, you will have to modify it to suit your needs. I included all the public variables names and modified others, but your a...
  7. lucrahouse

    Creating a user defined class

    Thank you Tony for such a quick respone. Your code has proven to be an excellent lesson. I hope to call these objects and assign additional variables to them now. Before I had been using tables or arrays and looping through them to find the exact reference has always taken longer than I thought...
  8. lucrahouse

    Creating a user defined class

    I was trying to learn something new. I wanted to take an example from my book, "Teach Yourself Excel in 21 Days", on page 457, was an example of a user defined class called electric heater. I want to be able to create multiple heaters and name each one something different. Here is an example of...
  9. lucrahouse

    using advanced filter to find unique values

    Thank you for your help, the "=T" worked.
  10. lucrahouse

    using advanced filter to find unique values

    I was trying to use the advanced filter under data/filter and my criteria was just one character such as the letter "T" but unfortunately it also gave other values which began with the letter "T" such as "TGT" or "TRP". I double checked and made sure I was filtering for only unique values, but...
  11. lucrahouse

    For Loop

    Thank you. It works!
  12. lucrahouse

    For Loop

    I'm trying to loop through shapes on a worksheet. These Shapes happen to be check boxes. I can call them by name as in this example. ActiveSheet.Shapes("CB20_DTS").Select But what I wanted to do is use the FOR LOOP but I can't seem to find the right wording. This example doesn't...
  13. lucrahouse

    Sharing an excel spreadsheet - Conference Room Scheduling?

    Purhaps the two file system might be good idea. What if your file on your desktop were upon change to a cell, try to open the master file and copy the information to the proposed cell. If file was in use, then the message could be file in use. Otherwise, if it found the corresponding cell not...
  14. lucrahouse

    DataGrid with HScrollBar Problem!

    try selecting cell b1 and go to window/freeze panes you might also try window/split good luck
  15. lucrahouse

    Auto Format

    Another option Sub ShadeRowsGray() Dim Today As Date Dim MyRowCount As Integer Dim MyColumnCount As Integer Dim x As Double Range("a1").Select Set Table1 = ActiveCell.CurrentRegion MyRowCount = Table1.Rows.Count MyColumnCount =...
  16. lucrahouse

    Excel Spreadsheet, Change text case using VBA

    Here are simple examples of changing case Sub MakeUpper() MyValue = ActiveCell.Value MyNewValue = UCase(MyValue) ActiveCell.Value = MyNewValue End Sub Sub MakeLower() MyValue = ActiveCell.Value MyNewValue = LCase(MyValue) ActiveCell.Value = MyNewValue End Sub Changing to sentence case...
  17. lucrahouse

    Excel + SQL + Date problem

    The correct way to write a SQL statement is as follows: sQuery = "SELECT * FROM master WHERE date = '17-jul-2003'" now try this. If it doesn't work, then it might be your connection to the database. Does other SQL statements work? Lets say that this works.
  18. lucrahouse

    Need Help not counting weekends

    I see a lot of good stuff on this idea but I did it my way. I threw in a calendar of holidays, too. I checked to make sure it works - you can make it a function if you want. Enjoy! Sub dude() Dim newnum As Range Dim startday As Date Dim lastday As Date Dim count As Integer Dim dateItem(9) As...

Part and Inventory Search

Back
Top