<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Excell to Cad (2007 Autocad and Excel 2000) in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417539#M16647</link>
    <description>Well I got it created and working. Now I need to go back and place error &lt;BR /&gt;
handlers and put finishing touches on it. Then I will expand it to do more &lt;BR /&gt;
things.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help.</description>
    <pubDate>Tue, 03 Feb 2009 18:47:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-02-03T18:47:08Z</dc:date>
    <item>
      <title>Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417529#M16637</link>
      <description>I'm trying to automate the insertion of details into AutoCAD based on user&lt;BR /&gt;
input in a form.&lt;BR /&gt;
&lt;BR /&gt;
I have recently created new details that cover the most sold options for our&lt;BR /&gt;
buildings. I got tired of having only a handful of generic details, and&lt;BR /&gt;
having to modify them the same every time. So now I have 72 options for a&lt;BR /&gt;
roof eave detail. I have all the details listed in an excel spreadsheet (see&lt;BR /&gt;
attached). I then created a lisp routine, to where the user only had to&lt;BR /&gt;
enter in the detail number and pick a certain point in the drawing. I have a&lt;BR /&gt;
template set up that has circles for the insertion points of the details. So&lt;BR /&gt;
when the details are inserted, at these points, they are displayed properly&lt;BR /&gt;
in the sheets.&lt;BR /&gt;
&lt;BR /&gt;
This works real slick, but then I got to thinking I could make this even&lt;BR /&gt;
easier. Why insert one detail at a time when I could enter all at once. I&lt;BR /&gt;
thought if I could create a box that the user would just pick options and&lt;BR /&gt;
click a button, then have all the correct details inserted. Then I thought&lt;BR /&gt;
why stop at inserting details. Why not have it also fill in some of the&lt;BR /&gt;
construction notes. Then I kept thinking of other things that could be&lt;BR /&gt;
automated by this same form. I realized if I was going to accomplish any of&lt;BR /&gt;
this, I had to focus on completing one task at a time. So I am going to&lt;BR /&gt;
focus on inserting details.&lt;BR /&gt;
&lt;BR /&gt;
I know very little vba and just basic lisp. I have read some tutorials on&lt;BR /&gt;
vba with regards to having AutoCAD and Excel communicating with each other.&lt;BR /&gt;
And have gone thru some tutorials dealing with just vba basics. I have also&lt;BR /&gt;
modified vba, that someone else has created, to meet my needs&lt;BR /&gt;
&lt;BR /&gt;
I have created the userform with everything that I need, then I got stuck.&lt;BR /&gt;
I'm drawing a blank as to where to start with the code.&lt;BR /&gt;
I know that after the user has picked all the options, they will then click&lt;BR /&gt;
the execute button. From there vba needs to go to the excel spreadsheet,&lt;BR /&gt;
with all the details listed, and sort through to find the right detail&lt;BR /&gt;
number. Then either something has to create a list of all the right details&lt;BR /&gt;
or have it insert one at a time.&lt;BR /&gt;
&lt;BR /&gt;
Can this even be done with what I have set up far, or do I need to go a&lt;BR /&gt;
different route.&lt;BR /&gt;
I know I need to go thru some more tutorials. Anybody know of ones that are&lt;BR /&gt;
geared toward what I am trying to accomplish?&lt;BR /&gt;
Thanks for any help.</description>
      <pubDate>Fri, 23 Jan 2009 23:54:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417529#M16637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-23T23:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417530#M16638</link>
      <description>Hi Larry,&lt;BR /&gt;
&lt;BR /&gt;
In the VBAIDE if you double click on the Execute button it will create a &lt;BR /&gt;
Sub routine like;&lt;BR /&gt;
&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
Sub ButtonName_Click ()&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
&lt;BR /&gt;
Any code you put inside the Sub will be executed when you click on the &lt;BR /&gt;
button when running your program.&lt;BR /&gt;
&lt;BR /&gt;
To see this happening you can add a line as shown.&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
Sub ButtonName_Click ()&lt;BR /&gt;
   MsgBox "I just clicked on my button"&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
&lt;BR /&gt;
What I suggest you do is to write a series of Functions which you call &lt;BR /&gt;
from this Sub.  That way you can work on one item at a time.&lt;BR /&gt;
&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
Sub ButtonName_Click ()&lt;BR /&gt;
   Me.Hide  '&amp;lt;-- Hide the form while you are working&lt;BR /&gt;
   CreateLinkToExcel&lt;BR /&gt;
   GetRoofShapeDataFromExcel&lt;BR /&gt;
   PlotRoofShapeData&lt;BR /&gt;
   etc&lt;BR /&gt;
   CloseLinkToExcel&lt;BR /&gt;
   Me.Show  '&amp;lt;-- Show the form again if needed		&lt;BR /&gt;
End Sub&lt;BR /&gt;
Function CreateLinkToExcel ()&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Function GetRoofShapeDataFromExcel ()&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Function PlotRoofShapeData()&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
etc.&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
&lt;BR /&gt;
Don't be frightened to create lots of Functions.  It is much easier to &lt;BR /&gt;
test and debug lots of small functions rather than a smaller number of &lt;BR /&gt;
large ones.  Only rarely should any function exceed the amount of code &lt;BR /&gt;
you can view on the screen without scrolling&lt;BR /&gt;
&lt;BR /&gt;
Also, if you look in the Help files you will find code to do nearly all &lt;BR /&gt;
the small functions you need, except that the code is formatted to show &lt;BR /&gt;
the outcome of an action and you need to modify it to do as you want.&lt;BR /&gt;
&lt;BR /&gt;
Lastly, unlike Lisp, you should put "Option Explicit" as the top line in &lt;BR /&gt;
each module and form code set.  This forces you to declare variables &lt;BR /&gt;
before using them and makes debugging easier.&lt;BR /&gt;
&lt;BR /&gt;
It helps you to catch typos if you declare variables like this;&lt;BR /&gt;
&lt;BR /&gt;
Dim sExcelFileName as String&lt;BR /&gt;
&lt;BR /&gt;
When you type it everywhere else - type in lower case and when the &lt;BR /&gt;
cursor leaves the line it will change the case to match the declaration &lt;BR /&gt;
- if you haven't made a typo.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
&lt;BR /&gt;
Larry wrote:&lt;BR /&gt;
&amp;gt; I'm trying to automate the insertion of details into AutoCAD based on user&lt;BR /&gt;
&amp;gt; input in a form.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I have recently created new details that cover the most sold options for our&lt;BR /&gt;
&amp;gt; buildings. I got tired of having only a handful of generic details, and&lt;BR /&gt;
&amp;gt; having to modify them the same every time. So now I have 72 options for a&lt;BR /&gt;
&amp;gt; roof eave detail. I have all the details listed in an excel spreadsheet (see&lt;BR /&gt;
&amp;gt; attached). I then created a lisp routine, to where the user only had to&lt;BR /&gt;
&amp;gt; enter in the detail number and pick a certain point in the drawing. I have a&lt;BR /&gt;
&amp;gt; template set up that has circles for the insertion points of the details. So&lt;BR /&gt;
&amp;gt; when the details are inserted, at these points, they are displayed properly&lt;BR /&gt;
&amp;gt; in the sheets.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; This works real slick, but then I got to thinking I could make this even&lt;BR /&gt;
&amp;gt; easier. Why insert one detail at a time when I could enter all at once. I&lt;BR /&gt;
&amp;gt; thought if I could create a box that the user would just pick options and&lt;BR /&gt;
&amp;gt; click a button, then have all the correct details inserted. Then I thought&lt;BR /&gt;
&amp;gt; why stop at inserting details. Why not have it also fill in some of the&lt;BR /&gt;
&amp;gt; construction notes. Then I kept thinking of other things that could be&lt;BR /&gt;
&amp;gt; automated by this same form. I realized if I was going to accomplish any of&lt;BR /&gt;
&amp;gt; this, I had to focus on completing one task at a time. So I am going to&lt;BR /&gt;
&amp;gt; focus on inserting details.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I know very little vba and just basic lisp. I have read some tutorials on&lt;BR /&gt;
&amp;gt; vba with regards to having AutoCAD and Excel communicating with each other.&lt;BR /&gt;
&amp;gt; And have gone thru some tutorials dealing with just vba basics. I have also&lt;BR /&gt;
&amp;gt; modified vba, that someone else has created, to meet my needs&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I have created the userform with everything that I need, then I got stuck.&lt;BR /&gt;
&amp;gt; I'm drawing a blank as to where to start with the code.&lt;BR /&gt;
&amp;gt; I know that after the user has picked all the options, they will then click&lt;BR /&gt;
&amp;gt; the execute button. From there vba needs to go to the excel spreadsheet,&lt;BR /&gt;
&amp;gt; with all the details listed, and sort through to find the right detail&lt;BR /&gt;
&amp;gt; number. Then either something has to create a list of all the right details&lt;BR /&gt;
&amp;gt; or have it insert one at a time.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Can this even be done with what I have set up far, or do I need to go a&lt;BR /&gt;
&amp;gt; different route.&lt;BR /&gt;
&amp;gt; I know I need to go thru some more tutorials. Anybody know of ones that are&lt;BR /&gt;
&amp;gt; geared toward what I am trying to accomplish?&lt;BR /&gt;
&amp;gt; Thanks for any help.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ------------------------------------------------------------------------&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ------------------------------------------------------------------------&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Sat, 24 Jan 2009 01:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417530#M16638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-24T01:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417531#M16639</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
After learning the basic basics like variable types, for next, if then, etc., modifying examples and other code  to meet your needs is a good way to learn.  Start out basic and expand and refine.  Here is a sample that shows autoCad connecting to an open instance of Excel, could be refined to a certain filename...&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
&lt;BR /&gt;
Sub xl2acad()&lt;BR /&gt;
&lt;BR /&gt;
Dim texthere(0 To 500) As Variant&lt;BR /&gt;
Dim str As String&lt;BR /&gt;
Dim XL As Object&lt;BR /&gt;
Dim xlSheet As Object&lt;BR /&gt;
Dim xlcurcell As Excel.Range&lt;BR /&gt;
Dim thisSpace As Integer&lt;BR /&gt;
thisSpace = ThisDrawing.ActiveSpace&lt;BR /&gt;
'Dim texthere As AcadText&lt;BR /&gt;
Set XL = GetObject(, "Excel.Application")&lt;BR /&gt;
Set xlSheet = XL.ActiveWorkbook.ActiveSheet&lt;BR /&gt;
'MsgBox xl.ActiveCell.Value&lt;BR /&gt;
xlSheet.UsedRange.Select&lt;BR /&gt;
'For Each xlcurcell In xl.ActiveCell.CurrentRegion.Cells&lt;BR /&gt;
'MsgBox xlcurcell&lt;BR /&gt;
'Next xlcurcell&lt;BR /&gt;
Dim dblPt As Variant&lt;BR /&gt;
Dim dblPtOrig As Variant&lt;BR /&gt;
Dim curCol As Integer&lt;BR /&gt;
Dim curRow As Integer&lt;BR /&gt;
Dim textalign As Integer&lt;BR /&gt;
curCol = 0: curRow = 0&lt;BR /&gt;
Dim x As Integer&lt;BR /&gt;
Dim textalignpt(0 To 2) As Double&lt;BR /&gt;
textalign = 0&lt;BR /&gt;
dblPt = ThisDrawing.Utility.GetPoint(, vbCr &amp;amp; "Insertion point: ")&lt;BR /&gt;
dblPtOrig = dblPt&lt;BR /&gt;
x = 0&lt;BR /&gt;
For Each xlcurcell In xlSheet.UsedRange&lt;BR /&gt;
'MsgBox xlcurcell&lt;BR /&gt;
If curCol &amp;lt;&amp;gt; 0 And curCol &amp;lt;&amp;gt; xlcurcell.Column Then ' if column change&lt;BR /&gt;
dblPt(0) = dblPt(0) + xlcurcell.ColumnWidth&lt;BR /&gt;
    If xlcurcell.HorizontalAlignment = xlHAlignCenter Then&lt;BR /&gt;
    textalignpt(0) = dblPt(0) + xlcurcell.ColumnWidth / 2&lt;BR /&gt;
      textalignpt(1) = dblPt(1)&lt;BR /&gt;
      textalignpt(2) = 0#&lt;BR /&gt;
      ' dblPt(0) = dblPt(0) + xlcurcell.ColumnWidth / 2&lt;BR /&gt;
       textalign = acHorizontalAlignmentCenter&lt;BR /&gt;
    Else&lt;BR /&gt;
    textalign = acHorizontalAlignmentLeft&lt;BR /&gt;
    &lt;BR /&gt;
    End If&lt;BR /&gt;
End If&lt;BR /&gt;
If curRow &amp;lt;&amp;gt; 0 And curRow &amp;lt;&amp;gt; xlcurcell.Row Then  ' if row change&lt;BR /&gt;
    dblPt(1) = dblPt(1) - xlcurcell.RowHeight / 9&lt;BR /&gt;
    dblPt(0) = dblPtOrig(0)&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If xlcurcell.ColumnWidth &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;
    If thisSpace = 1 Then&lt;BR /&gt;
        Set texthere(x) = ThisDrawing.ModelSpace.AddText(xlcurcell.text, dblPt, 1)&lt;BR /&gt;
    Else&lt;BR /&gt;
        Set texthere(x) = ThisDrawing.PaperSpace.AddText(xlcurcell.text, dblPt, 1)&lt;BR /&gt;
    End If&lt;BR /&gt;
End If&lt;BR /&gt;
curCol = xlcurcell.Column&lt;BR /&gt;
curRow = xlcurcell.Row&lt;BR /&gt;
If textalign &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;
texthere(x).HorizontalAlignment = textalign&lt;BR /&gt;
texthere(x).TextAlignmentPoint = textalignpt&lt;BR /&gt;
End If&lt;BR /&gt;
texthere(x).Update&lt;BR /&gt;
Next xlcurcell&lt;BR /&gt;
End Sub&lt;BR /&gt;
{code}&lt;BR /&gt;
&lt;BR /&gt;
In the VBA coding environment (in case you don't know) you can highlight objects and methods and properties and press F1.  When I'm working with both Excel and autoCad, I like to keep a dummy copy of excel VBA IDE open (Tools Macros VBA Editor) and copy/paste for easier F1 help access.  &lt;BR /&gt;
&lt;BR /&gt;
Another useful tool to understand what is going on in your program is to have View Locals Window on w/ Breakpoints set at useful spots, either click in the left code margin or right-click Toggle Breakpoint.  &lt;BR /&gt;
&lt;BR /&gt;
If i were doing this i'd have the excel sheet in one table, or maybe 4 (i.e. floors, roofs, walls, hvac), and have them in named ranges.  A possible shortcut would be to concatenate all of the columns together, except the blockid, in excel in a hidden column (dealing with the inch(") symbol somehow).  The form could collect the results and concatenate them and then do a Vlookup from within the program on the excel spreadsheet looking for the blockid and then insert the block.&lt;BR /&gt;
&lt;BR /&gt;
anyway... hope its useful.&lt;BR /&gt;
cadger</description>
      <pubDate>Sat, 24 Jan 2009 03:47:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417531#M16639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-24T03:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417532#M16640</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Boy this is a lot of fun. I have been playing &lt;BR /&gt;
around with a bunch of little codes to see what they do.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;So far I have been able to open a certain Excel &lt;BR /&gt;
file and set a certain worksheet as current. &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;lt;code&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Private Sub CommandButton3_Click()&lt;BR /&gt;&amp;nbsp; Dim &lt;BR /&gt;
xlApp As Excel.Application&lt;BR /&gt;&amp;nbsp; Dim xlBook As Workbook&lt;BR /&gt;&amp;nbsp; Dim &lt;BR /&gt;
xlSheet As Worksheet&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; Set xlApp = &lt;BR /&gt;
CreateObject("Excel.Application")&lt;BR /&gt;&amp;nbsp; Set xlBook = &lt;BR /&gt;
xlApp.Workbooks.Open("c:\Projects\misc\DETAILS\Detail-Number-List.xls")&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;
Set xlSheet = Worksheets("Detail2")&lt;BR /&gt;&amp;nbsp; Sheets("Detail2").Select&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;
xlApp.Visible = True&lt;BR /&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;lt;/code&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Also figured out how to open the file without &lt;BR /&gt;
having it displayed. Have been able to take the optionbutton true value and turn &lt;BR /&gt;
it into text that can be inserted into excel for searching.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;lt;code&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub obFLRim2x4_Click()&lt;BR /&gt;&amp;nbsp; Dim &lt;BR /&gt;
FLRim2x4 As String&lt;BR /&gt;&amp;nbsp; If obFLRim2x4.Value = True &lt;BR /&gt;
Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLRim2x4 = "2 x 4"&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;lt;/code&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Have went and created separate worksheets in the &lt;BR /&gt;
workbook. That way each detail has its own sheet. &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Next I have to figure out how to make Excel search &lt;BR /&gt;
using the values that I have. I have a vba code for using the autofilter &lt;BR /&gt;
function, but haven't figured out how to get it to work in this code. The code &lt;BR /&gt;
is from another routine that was created by someone else that I modified. It has &lt;BR /&gt;
textbox instead of optionbuttons.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;lt;cadger&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:6111229@discussion.autodesk.com"&amp;gt;news:6111229@discussion.autodesk.com&lt;/A&gt;...&lt;/DIV&gt;Hello, &lt;BR /&gt;
  After learning the basic basics like variable types, for next, if then, etc., &lt;BR /&gt;
  modifying examples and other code to meet your needs is a good way to learn. &lt;BR /&gt;
  Start out basic and expand and refine. Here is a sample that shows autoCad &lt;BR /&gt;
  connecting to an open instance of Excel, could be refined to a certain &lt;BR /&gt;
  filename... {code} Option Explicit Sub xl2acad() Dim texthere(0 To 500) As &lt;BR /&gt;
  Variant Dim str As String Dim XL As Object Dim xlSheet As Object Dim xlcurcell &lt;BR /&gt;
  As Excel.Range Dim thisSpace As Integer thisSpace = ThisDrawing.ActiveSpace &lt;BR /&gt;
  'Dim texthere As AcadText Set XL = GetObject(, "Excel.Application") Set &lt;BR /&gt;
  xlSheet = XL.ActiveWorkbook.ActiveSheet 'MsgBox xl.ActiveCell.Value &lt;BR /&gt;
  xlSheet.UsedRange.Select 'For Each xlcurcell In &lt;BR /&gt;
  xl.ActiveCell.CurrentRegion.Cells 'MsgBox xlcurcell 'Next xlcurcell Dim dblPt &lt;BR /&gt;
  As Variant Dim dblPtOrig As Variant Dim curCol As Integer Dim curRow As &lt;BR /&gt;
  Integer Dim textalign As Integer curCol = 0: curRow = 0 Dim x As Integer Dim &lt;BR /&gt;
  textalignpt(0 To 2) As Double textalign = 0 dblPt = &lt;BR /&gt;
  ThisDrawing.Utility.GetPoint(, vbCr &amp;amp; "Insertion point: ") dblPtOrig = &lt;BR /&gt;
  dblPt x = 0 For Each xlcurcell In xlSheet.UsedRange 'MsgBox xlcurcell If &lt;BR /&gt;
  curCol &amp;lt;&amp;gt; 0 And curCol &amp;lt;&amp;gt; xlcurcell.Column Then ' if column change &lt;BR /&gt;
  dblPt(0) = dblPt(0) + xlcurcell.ColumnWidth If xlcurcell.HorizontalAlignment = &lt;BR /&gt;
  xlHAlignCenter Then textalignpt(0) = dblPt(0) + xlcurcell.ColumnWidth / 2 &lt;BR /&gt;
  textalignpt(1) = dblPt(1) textalignpt(2) = 0# ' dblPt(0) = dblPt(0) + &lt;BR /&gt;
  xlcurcell.ColumnWidth / 2 textalign = acHorizontalAlignmentCenter Else &lt;BR /&gt;
  textalign = acHorizontalAlignmentLeft End If End If If curRow &amp;lt;&amp;gt; 0 And &lt;BR /&gt;
  curRow &amp;lt;&amp;gt; xlcurcell.Row Then ' if row change dblPt(1) = dblPt(1) - &lt;BR /&gt;
  xlcurcell.RowHeight / 9 dblPt(0) = dblPtOrig(0) End If If &lt;BR /&gt;
  xlcurcell.ColumnWidth &amp;lt;&amp;gt; 0 Then If thisSpace = 1 Then Set texthere(x) = &lt;BR /&gt;
  ThisDrawing.ModelSpace.AddText(xlcurcell.text, dblPt, 1) Else Set texthere(x) &lt;BR /&gt;
  = ThisDrawing.PaperSpace.AddText(xlcurcell.text, dblPt, 1) End If End If &lt;BR /&gt;
  curCol = xlcurcell.Column curRow = xlcurcell.Row If textalign &amp;lt;&amp;gt; 0 Then &lt;BR /&gt;
  texthere(x).HorizontalAlignment = textalign texthere(x).TextAlignmentPoint = &lt;BR /&gt;
  textalignpt End If texthere(x).Update Next xlcurcell End Sub {code} In the VBA &lt;BR /&gt;
  coding environment (in case you don't know) you can highlight objects and &lt;BR /&gt;
  methods and properties and press F1. When I'm working with both Excel and &lt;BR /&gt;
  autoCad, I like to keep a dummy copy of excel VBA IDE open (Tools Macros VBA &lt;BR /&gt;
  Editor) and copy/paste for easier F1 help access. Another useful tool to &lt;BR /&gt;
  understand what is going on in your program is to have View Locals Window on &lt;BR /&gt;
  w/ Breakpoints set at useful spots, either click in the left code margin or &lt;BR /&gt;
  right-click Toggle Breakpoint. If i were doing this i'd have the excel sheet &lt;BR /&gt;
  in one table, or maybe 4 (i.e. floors, roofs, walls, hvac), and have them in &lt;BR /&gt;
  named ranges. A possible shortcut would be to concatenate all of the columns &lt;BR /&gt;
  together, except the blockid, in excel in a hidden column (dealing with the &lt;BR /&gt;
  inch(") symbol somehow). The form could collect the results and concatenate &lt;BR /&gt;
  them and then do a Vlookup from within the program on the excel spreadsheet &lt;BR /&gt;
  looking for the blockid and then insert the block. anyway... hope its useful. &lt;BR /&gt;
  cadger&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jan 2009 18:24:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417532#M16640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-27T18:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417533#M16641</link>
      <description>One additional bonus with excel vba programming is that you can simply go to 'Tools Macro Record New Macro' to record new code and to see the results of actions.  Alot of what's recorded is overkill and can be deleted and other portions of it need to be manipulated a little so that it will actually work inside of a program, but recording can be useful.</description>
      <pubDate>Wed, 28 Jan 2009 00:41:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417533#M16641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-28T00:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417534#M16642</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;That is some really great advice.&amp;nbsp; &lt;BR /&gt;
Thanks!!!!&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Ran into a problem. I am getting a Runtime Error &lt;BR /&gt;
1004.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;When&amp;nbsp;I add "RoofOver6in" to &lt;BR /&gt;
"CommandButton1_Click" I get the error. If I leave it out, it runs great. Any &lt;BR /&gt;
Ideas?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;lt;code&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Private Sub CommandButton1_Click()&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;
WallStud2x4&lt;BR /&gt;&amp;nbsp; WallSidingT111&lt;BR /&gt;&amp;nbsp; RoofPitch2in12&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;
RoofRafter2x8&lt;BR /&gt;&amp;nbsp; RoofInsulR21&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub &lt;BR /&gt;
WallStud2x4()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ob2x4wall.Value = True &lt;BR /&gt;
Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
Rows("1:1").Select&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
Selection.AutoFilter&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection.AutoFilter &lt;BR /&gt;
Field:=3, Criteria1:="2 x 4"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub &lt;BR /&gt;
WallSidingT111()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If obT111Siding.Value = True &lt;BR /&gt;
Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection.AutoFilter Field:=4, &lt;BR /&gt;
Criteria1:="T1-11"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub RoofPitch2in12()&lt;BR /&gt;&amp;nbsp; If &lt;BR /&gt;
obRoofPitch2in12.Value = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
Selection.AutoFilter Field:=5, Criteria1:="2 in 12"&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub RoofRafter2x8()&lt;BR /&gt;&amp;nbsp; If &lt;BR /&gt;
obRoofRaft2x8.Value = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection.AutoFilter &lt;BR /&gt;
Field:=6, Criteria1:="2 x 8"&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub RoofInsulR21()&lt;BR /&gt;&amp;nbsp; If &lt;BR /&gt;
obRoofInsulR21.Value = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
Selection.AutoFilter Field:=7, Criteria1:="R-21"&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub RoofOver6in()&lt;BR /&gt;&amp;nbsp; If &lt;BR /&gt;
obRoofOver6in.Value = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection.AutoFilter &lt;BR /&gt;
Field:=8, Criteria1:="6 in"&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;lt;/code&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;lt;cadger&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:6113024@discussion.autodesk.com"&amp;gt;news:6113024@discussion.autodesk.com&lt;/A&gt;...&lt;/DIV&gt;One &lt;BR /&gt;
  additional bonus with excel vba programming is that you can simply go to &lt;BR /&gt;
  'Tools Macro Record New Macro' to record new code and to see the results of &lt;BR /&gt;
  actions. Alot of what's recorded is overkill and can be deleted and other &lt;BR /&gt;
  portions of it need to be manipulated a little so that it will actually work &lt;BR /&gt;
  inside of a program, but recording can be useful.&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:38:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417534#M16642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-28T16:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417535#M16643</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I think I figured it out. Calling up to many subs. &lt;BR /&gt;
When I broke it up, it works just fine.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Larry" &amp;lt;-&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:6113384@discussion.autodesk.com"&amp;gt;news:6113384@discussion.autodesk.com&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV id="jive-html-wrapper-div"&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;That is some really great advice.&amp;nbsp; &lt;BR /&gt;
  Thanks!!!!&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Ran into a problem. I am getting a Runtime Error &lt;BR /&gt;
  1004.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;When&amp;nbsp;I add "RoofOver6in" to &lt;BR /&gt;
  "CommandButton1_Click" I get the error. If I leave it out, it runs great. Any &lt;BR /&gt;
  Ideas?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;lt;code&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Private Sub CommandButton1_Click()&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;
  WallStud2x4&lt;BR /&gt;&amp;nbsp; WallSidingT111&lt;BR /&gt;&amp;nbsp; RoofPitch2in12&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;
  RoofRafter2x8&lt;BR /&gt;&amp;nbsp; RoofInsulR21&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub &lt;BR /&gt;
  WallStud2x4()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ob2x4wall.Value = True &lt;BR /&gt;
  Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Rows("1:1").Select&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Selection.AutoFilter&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection.AutoFilter &lt;BR /&gt;
  Field:=3, Criteria1:="2 x 4"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
  Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub &lt;BR /&gt;
  WallSidingT111()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If obT111Siding.Value = &lt;BR /&gt;
  True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection.AutoFilter Field:=4, &lt;BR /&gt;
  Criteria1:="T1-11"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
  Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub RoofPitch2in12()&lt;BR /&gt;&amp;nbsp; If &lt;BR /&gt;
  obRoofPitch2in12.Value = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Selection.AutoFilter Field:=5, Criteria1:="2 in 12"&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
  Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub RoofRafter2x8()&lt;BR /&gt;&amp;nbsp; If &lt;BR /&gt;
  obRoofRaft2x8.Value = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Selection.AutoFilter Field:=6, Criteria1:="2 x 8"&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
  Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub RoofInsulR21()&lt;BR /&gt;&amp;nbsp; If &lt;BR /&gt;
  obRoofInsulR21.Value = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Selection.AutoFilter Field:=7, Criteria1:="R-21"&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
  Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub RoofOver6in()&lt;BR /&gt;&amp;nbsp; If &lt;BR /&gt;
  obRoofOver6in.Value = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Selection.AutoFilter Field:=8, Criteria1:="6 in"&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End &lt;BR /&gt;
  Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;lt;/code&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE&gt;&lt;BR /&gt;
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;&amp;lt;cadger&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
    href="news:6113024@discussion.autodesk.com"&amp;gt;news:6113024@discussion.autodesk.com&lt;/A&gt;...&lt;/DIV&gt;One &lt;BR /&gt;
    additional bonus with excel vba programming is that you can simply go to &lt;BR /&gt;
    'Tools Macro Record New Macro' to record new code and to see the results of &lt;BR /&gt;
    actions. Alot of what's recorded is overkill and can be deleted and other &lt;BR /&gt;
    portions of it need to be manipulated a little so that it will actually work &lt;BR /&gt;
    inside of a program, but recording can be &lt;BR /&gt;
useful.&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:49:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417535#M16643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-28T16:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417536#M16644</link>
      <description>Ok now I'm stuck. I haven't been able to figure out how to get the data out &lt;BR /&gt;
of a cell in Excell. I looked at VLookup, but with that you have to know &lt;BR /&gt;
what the value is. I don't know what the value is. I'm trying to retrive &lt;BR /&gt;
that information. I know the cell, with the information that I am looking &lt;BR /&gt;
for, will always be in column 1 and the second visible row. Is there a way &lt;BR /&gt;
to say second visible row and column1 in vba?</description>
      <pubDate>Wed, 28 Jan 2009 22:18:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417536#M16644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-28T22:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417537#M16645</link>
      <description>&lt;CODE&gt;Me.TextBox1.Value = &lt;BR /&gt;
Range("A:A").SpecialCells(xlCellTypeVisible)(2).Value&lt;/CODE&gt;&lt;BR /&gt;
&lt;BR /&gt;
I thought this might work, but still only returns the value of cell A2. &lt;BR /&gt;
Anybody have any ideas?</description>
      <pubDate>Thu, 29 Jan 2009 18:01:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417537#M16645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-29T18:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417538#M16646</link>
      <description>Got it.&lt;BR /&gt;
 &lt;CODE&gt;Me.TextBox1.Value = &lt;BR /&gt;
Columns(1).SpecialCells(xlCellTypeVisible).Areas(2)(1).Value&lt;/CODE&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Larry" &amp;lt;-&amp;gt; wrote in message news:6114380@discussion.autodesk.com...&lt;BR /&gt;
&lt;CODE&gt;Me.TextBox1.Value =&lt;BR /&gt;
Range("A:A").SpecialCells(xlCellTypeVisible)(2).Value&lt;/CODE&gt;&lt;BR /&gt;
&lt;BR /&gt;
I thought this might work, but still only returns the value of cell A2.&lt;BR /&gt;
Anybody have any ideas?</description>
      <pubDate>Thu, 29 Jan 2009 20:17:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417538#M16646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-29T20:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excell to Cad (2007 Autocad and Excel 2000)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417539#M16647</link>
      <description>Well I got it created and working. Now I need to go back and place error &lt;BR /&gt;
handlers and put finishing touches on it. Then I will expand it to do more &lt;BR /&gt;
things.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help.</description>
      <pubDate>Tue, 03 Feb 2009 18:47:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excell-to-cad-2007-autocad-and-excel-2000/m-p/2417539#M16647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-03T18:47:08Z</dc:date>
    </item>
  </channel>
</rss>

