Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Recent content by cll

  1. cll

    Password that user can manage

    You're right! I must give the database solution a closer look. Thanks a lot for your input! Regards Claus
  2. cll

    Password that user can manage

    OK, maybe I'm not very good to explain the matter. What I have made is, that when the workbook is opened, the user is asked (in a userform) for username and password. When User1 enter Password1 the workbook opens in one way. When User2 enter Password2 the workbook opens anotherway. When User3...
  3. cll

    Password that user can manage

    Hey!! Thanks for replying. The first I've got (have asked in several forums). The link desribes the "normal" way of protecting cells, sheets and workbook. What I want is a more dedicated "passwording" (which I have made as described), with possibility for the users to change password (which I...
  4. cll

    Password that user can manage

    Hi all I have a workbook (Excel2002) with an "entrance userform" where users fill in name (pre-defined) and password (pre-defined). The code opens then the workbook accordingly (some sheets hidden, some protected and so on) Can anyone show me how the user can manage their own password, or give...
  5. cll

    TOC in Word

    Thanks to the hints, I have figured this solution out: Private Sub tabcon1() Selection.HomeKey Unit:=wdStory Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldTOCEntry, Text:= _ Chr(34) & "text1" & Chr(9) & "text2" & Chr(9) & "text3" & Chr(9) &...
  6. cll

    TOC in Word

    Thanks, You might be right! (- already tried EngTips). Have found another promising link www.mvps.org/word. Regards cll
  7. cll

    TOC in Word

    This question was announced mid october but noone replied, maybe because a wrong subject? Cant anyone help me ?? Hi all I have a weird problem with TOC The following (simplified) code put a TC field and make a TOC from that: Private Sub TabCon() Selection.HomeKey unit:=wdStory...
  8. cll

    I wanna find more AutoCAD VBA sample. WHERE?

    Try this one: http://www.tenlinks.com/CAD/users/autocad/vba.htm I can also recommend participating www.augi.com, where you find a forum dedicated to AutoCad. Good luck Claus
  9. cll

    Hi all I have a weird problem with

    Hi all I have a weird problem with TOC The following (simplified) code put a TC field and make a TOC from that: Private Sub TabCon() Selection.HomeKey unit:=wdStory ActiveDocument.TablesOfContents.MarkEntry Range:=Selection.Range, _ Entry:="text1" & Chr(9) & "text2" &...
  10. cll

    Custom Sorting in VBA Excel

    Hey mark47, no, this was just an example. At the moment my list starts with 0S (but it could be 0A or anyother). As a workaround I have implemented the code: ExcelServer.SendKeys "%ki{enter}" DoEvents before sorting to make excel sort correct from my list. Another problem I...
  11. cll

    Replace block with attributes, VB

    Thanks vlhijlke! Actually I made it by combining some vba-samples and specialize them to my needs. I can update four named old titleblocks to our newest. I've worked a little with vba, but never got into lisp, thats why I prefer vba. Regards Claus
  12. cll

    Custom Sorting in VBA Excel

    I've found that if I do a manual sorting my macro will function thereafter. Or if I do a manual recalculation or even if I just go into the properties dialog in Excel and select OK - then my sortingmacro will work. for me it's a bit strange, but could give someone a clue. Regards Claus
  13. cll

    Custom Sorting in VBA Excel

    Correction to above: Selection.Sort Key1:=Range("A8"), Order1:=xlAscending, _ Header:=xlNo
  14. cll

    Custom Sorting in VBA Excel

    Hi jproj, i've tried to copy the code from Excel to VBA and vise versa, but no result. Here's the Excel makro (works): Range("A8:F250").Select Selection.Sort Key1:=Range("A24"), Order1:=xlAscending, _ Header:=xlNo, OrderCustom:=6, MatchCase:=False, _...
  15. cll

    Custom Sorting in VBA Excel

    Hi jproj Thanks anyway. I am aware of the standard sort method in Excel. But Excel has a cuctom sort method too, where it is possible to specify a sorting list. My problem is, that even when I can do the sorting correct in Excel (1Z1, 1Z2, 1Z11, 1Z12) this dosn't work from VBA ! Best regards cll

Part and Inventory Search