Search:

Type: Posts; User: dlary9890

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    3,090

    Re: run-time error 424 (Object required)

    If I understand you correctly. The object was defined within a form and a class module needs to reference some property within the object.
    If that is correct regardless if you are in Office VBA or...
  2. Re: Adding additional comments to currently available comments

    Comments are stored in the worksheets(x).Comments collection. This collection has a Parent property which has a ROW and COLUMN property. You would have to use this to determine if the cell you are...
  3. Replies
    9
    Views
    1,665

    Re: open-ended question, Excel 2007, VB 6.5

    Write a VBA macro that will open the .DAT file as a file and read through it.
    You can use a do ... until EOF(?) where ? is the file number when you open the file.
    There are abundant examples on...
  4. Thread: VBA Tutorial

    by dlary9890
    Replies
    2
    Views
    548

    Re: VBA Tutorial

    There are several good books available that teach Excel in a hands-on approach with practice sessions accompanying each section. If your friend is good at learning this way then that is perhaps the...
  5. Replies
    4
    Views
    450

    MsOf03 Re: Formula replaced by Value

    1. You are correct. The formula bar will show the formula while the cell will show the result of the calculation of that formula.


    But then my question remains. Why has the formula changed in a...
  6. Replies
    4
    Views
    450

    MsOf03 Re: Formula replaced by Value

    A cell can hold a formula or a value but not both. If you copy a cell containing a formula and paste it in another cell you will get a formula in the new cell. If you copy a cell containing a...
  7. MsOf10 Re: VBA Macro: Conditionally pick cells from another workbook

    If the macro is ran only once you are correct. But a couple of points here and I'm out.
    Does the value of width, length, height ever change in workbook2? If it does then wouldn't you
    want to have...
  8. Re: Best Way To Copy Sheet From XLSM Workbook to XLS?

    westconn1 is correct except that instead of the beforesave or aftersave event I would use the beforeclose event. That way your macro can save the workbook as an XLS workbook, then close excel. One...
  9. MsOf10 Re: VBA Macro: Conditionally pick cells from another workbook

    A macro is not needed. What you do is sort workbook2/worksheet2 in ascending order on PROTOCOL then save it.
    In workbook1/worksheet1 put a formula in the cells you want in worksheet1.
    The formula...
  10. Replies
    1
    Views
    560

    Re: convert data in one WB to another WB

    You probably don't need a macro. Just put formulas in WB3 that reference WB1. Everytime you open WB3 it will ask you if you want to update the links. If you say no, the values in WB3 remain the...
  11. Replies
    7
    Views
    1,182

    Re: Help in VBA-Excel needed

    Can you post a copy of a few rows of Workbook "B"?
  12. Replies
    6
    Views
    1,241

    Re: IF within select statement

    Thanks guys. Someone from another team was able to help.
  13. Replies
    6
    Views
    1,241

    Re: IF within select statement

    SQL Server 2008 R2
  14. Replies
    29
    Views
    1,561

    Re: Circular references?

    You could add a new case statement to your first case statement in the worksheet change event.
    [HIGHLIGHT=vb]......
    Case 2 'B
    If isdate(range(target).value) then
    ...
  15. Re: need help in excel vba to copy named range from one worksheet to another

    Or try this so you don't waste time switching sheets.

    Range(myrange).Copy Sheets("Sheet2").Range(myrange).offset(rowOffset, colOffset)
  16. Thread: Optimization

    by dlary9890
    Replies
    7
    Views
    880

    Re: Optimization

    Well those are good and will certainly work but this might be a quicker way.

    1. Select the cells that you want to potentially replace data in. Or the entire column for that matter.
    2. Then...
  17. Replies
    6
    Views
    1,241

    [RESOLVED] IF within select statement

    I have a SQL select statement that calculates the value of one of the elements being returned by the select. Following is that SQL.
    , AVGManual =
    (select count(*)
    from...
  18. Replies
    13
    Views
    912

    Re: Refer to part of an array?

    I assume that since you are looking a subsets of an array the you determine the first and probably last values that you want in a range in the array.
    Would it not be faster and more flexible to...
  19. Thread: VBA Code

    by dlary9890
    Replies
    9
    Views
    1,162

    Re: VBA Code

    fit your code at the top of the first set of code.
    You should embed that code in a select statement to make sure the column is the right one and the row is correct.

    Select Case Target.Column...
  20. Replies
    12
    Views
    1,981

    Re: VB6 Change worksheets in Excel

    Nope, when you set oXLSheet to another worksheet you have effectively released the sheet
    that it referenced before.
  21. Replies
    29
    Views
    1,561

    Re: Circular references?

    You can use conditional formatting on the cells you need to affect.
  22. Replies
    29
    Views
    1,561

    Re: Circular references?

    I think what you want for those colors is to use conditional formatting on the cells.
  23. Replies
    12
    Views
    1,981

    Re: VB6 Change worksheets in Excel

    When you do this:
    Set oXLSheet = oXLBook.Worksheets(ws_cnt)

    Then any references to oXLSheet will suffice.
    As in this:
    oXLSheet.Cells(27 + f, 1) = filename
    oXLSheet.Cells(27 +...
  24. Replies
    5
    Views
    1,066

    MsOf10 Re: CommandButton Array

    You may be making this harder than is necessary. First use the TAG property to identify all of the
    command buttons to be updated. Maybe put "what ever" as it's value.

    dim vbcontrol as object...
  25. Replies
    12
    Views
    1,981

    Re: VB6 Change worksheets in Excel

    From the code snippet it is not clear what the value of ws-cnt is. This could cause a problem.
    Also, where you oXLSheet(ws_cnt).activate this is not necessary because oXLSheet is a
    worksheet...
  26. Replies
    29
    Views
    1,561

    Re: Circular references?

    I don't think it is possible using a formula but I have created a macro that will do everything you've
    indicated you want. I've not fully tested it so do your due dilligence and test it.
    This...
  27. Replies
    29
    Views
    1,561

    Re: Circular references?

    Which version of Excel are you using?
  28. Replies
    29
    Views
    1,561

    Re: Circular references?

    Yes, but users being what they are will "play" with the contents or change their minds and flip-flop back and forth. 35 years experience speaks.
    So do you need to prevent that from happening?
  29. Replies
    29
    Views
    1,561

    Re: Circular references?

    A couple of questions here:
    Can any other values be entered in column K?
    If "XYZ" is entered in Column K and then "With Engineer for review" a second time should column P be changed to the new date?
  30. Re: Excel 2010 VBA only - PC Freezes

    Is your PC connected to a network?
    We have the same problem with our PCs while using any application. It appears that some network action is causing our PCs to lock for a second or two on up to 2 -...
  31. Replies
    5
    Views
    1,365

    MsOf10 Re: Must copy cell formatting in Excel2010

    It sounds like you want to copy the whole sheet so why not do just that. You can create a test workbook and in the developer ribbon click on record macro then right click on the sheet name and...
  32. Re: Copy Column From Master WB to All WB in a Folder

    This code snippet should resolve your problem.

    For intFno = 1 To UBound(fList)
    On Error GoTo Skip
    Set wbOpened = Workbooks.Open(fPath & fList(intFno))
    ...
  33. Replies
    4
    Views
    634

    Re: Finding if a variable used

    If you select the variable name where it is declared then do a find. If the variable is used then the place it is used will be shown. Otherwise the variable will be highlighted.
  34. Replies
    4
    Views
    2,753

    MsOf10 Re: [Excel] Selection Change Event

    Use Target.cells.countlarge which I believe is new to Excel 2010. The Target.Cells.Count is a long value so when you select the entire worksheet the .Count is too small to hold the result.
Results 1 to 34 of 34



Click Here to Expand Forum to Full Width