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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by tecnik

  1. tecnik

    Excel OFFSET help please.

    Thanks for the help guys, it all works fine now. Cheers, Nick
  2. tecnik

    Excel OFFSET help please.

    Hi there, I'm having problems trying to get the result of a cell that contains the formula below:- =IF(J18=1,"L8",IF(J18=3,"N8",IF(J18=2,"M8","0"))) into this OFFSET:- =OFFSET(L8,K18,0) So depending on dependent on a dropdown selection the value would change between L8, M8 and N8. I know...
  3. tecnik

    Query regarding referencing object on page

    Hi there, Rather than refering to an object on a page as below (by an index), I've been trying to refer the 'selected' item, however I keep getting a 'type mismatch'? Set myDocument = ActiveDocument pointsArray = myDocument.Shapes(1).Nodes.Item(1).Points I'm trying to apply this way of...
  4. tecnik

    Query about line node positions

    Thanks Skip, i've had a look at that. What I'm kinda lost with is if I set the position of a node with .SetPosition 1, 100, 100 how can I find out the positional values I have used from the node on the page? Thanks Nick
  5. tecnik

    Query about line node positions

    Thanks Skip, I think I've been getting my wires crossed about the coordinates being returned. Regards Nick
  6. tecnik

    Query about line node positions

    Hi Skip, Thanks for the information. Sorry, didn't explain, the selected line is the 'selection'. In the 'Microsoft VB help' I'd found this:- With ActiveDocument.Shapes(3).Nodes pointsArray = .Item(2).Points currXvalue = pointsArray(1, 1) currYvalue = pointsArray(1, 2)...
  7. tecnik

    Query about line node positions

    Hi there, I'm trying to put together a macro that moves line nodes, here's what I have so far:- Sub movePoint4() Set Nds = Selection.ShapeRange.Nodes With Nds pointsArray = .Item(2).Points currXvalue = pointsArray(1, 1) currYvalue = pointsArray(1, 2)...
  8. tecnik

    Help with Excel 'Find' please

    Having looked a bit further, it appears to be using the value from the cell I have highlighted when I run the script.
  9. tecnik

    Help with Excel 'Find' please

    Hi Geoff, My fault, I'd not cut and pasted your code, and so had left '.Activate' on the end of the find. Now when the code executes the find seems to post the first value found into all the cells. Any ideas, Thanks Nick
  10. tecnik

    Help with Excel 'Find' please

    Hi Geoff, Thanks for your reply and help with the code. Your solution was one of the things I'd tried, however when I tried to run the macro I got a 'Type mismatch' error, which is what I get now. Please can you help further, Thanks in advance, Nick
  11. tecnik

    Help with Excel 'Find' please

    Hi there, I'm trying to limit the search routine, below, to only find values from one column, D for example, at the moment it will find values from the whole sheet. I've tried to limit the find a number of ways but haven't had any success. Thanks in advance, Nick Sub FindCodesV2() Dim...
  12. tecnik

    Newbie needs help with Rectangle position in Word

    Taking this one step further, I've added the drawing of a line to my original code. What I've been trying to find out now is how I can select the rectangle that was drawn before the line, so basically both the line and the rectangle are selected. Thanks in advance, Nick Here's the code:-...
  13. tecnik

    Newbie needs help with Rectangle position in Word

    Hi Gerry, Thanks for the help. I've had a look at the inline shape object and I'm not sure if it'll do what I want. In the MSDN library it says that in only works with a 'picture, linked picture, embedded OLE object, linked OLE object, or ActiveX control'. Being a newbie on this subject I'm...
  14. tecnik

    Word rectangle positions

    Thanks for the help with this one I've tried adding a form element to a document and giving it a label 'Coordinates' and then adding the sub-routine to my macros code but I can't see it when I try to assign it to the form element. When I look at the list of macros I can't see the new event...
  15. tecnik

    Word rectangle positions

    Hi there, I have a simple macro that draws a rectangle on the page however I'd like to change the macro so it draws the rectangle at the cursor postition. Is this relatively easy to do. Thanks in advance, Nick Here's the code:- Sub box() ActiveDocument.Shapes.AddShape msoShapeRectangle...

Part and Inventory Search

Back
Top