Jump to content

Search the Community

Showing results for tags 'title blokc excel vba'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Categories

  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Hello there! Can someone help me out? I have make a small Excel VBA project, that opens a dwt file "FLW40_0"(see macro below) with a button. In this dwt I have managed a A3 layout with frame and a title block (see attached file). Now after opnening the dwt I what to insert the title Block that I define in excel file (see sheet "Schriftfeld"). The block schould be on layout down left. Sub FLW40_0() Dim ACAD As Object Dim NewFile As Object Dim MyAcadPath As String Dim bReadOnly As Boolean On Error Resume Next Set ACAD = GetObject(, "ACAD.Application") If (Err 0) Then Err.Clear Set ACAD = CreateObject("autocad.Application") If (Err 0) Then MsgBox "Could Not Load AutoCAD!", vbExclamation End End If End If 'If you want to see AutoCAD on screen ACAD.Visible = False MyAcadPath = "U:\AutoCAD Vorlagen\FLW40_0.dwt" bReadOnly = True Set NewFile = ACAD.Documents.Open(MyAcadPath, bReadOnly) If (NewFile Is Nothing) Then ErrorMessage: If NewFile = "False" Then End MsgBox "Could not find the required spreadsheet that should be located at" & vbCr & MyAcadPath & vbCr & "Please rename or relocate the specified file as needed." End End If 'Close AutoCAD Process 'ACAD.Quit Set ACAD = Nothing Set NewFile = Nothing End Sub Best regards Alex FLW40.rar
×
×
  • Create New...