Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help me add a Fact of the Day to a User From!

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
waynehelley
358 Views, 2 Replies

Help me add a Fact of the Day to a User From!

I know what I am doing with the logic side of it...

 

Dim row As Integer
GoExcel.Open("C:\Work\Designs\Templates\2013\Inventor Templates\Metric\UK iLogic Configurators\MCC Tier Configurator Data.xlsx", "Facts")

i=0
For row = 1 To 1000
'Exits the FOR function when reaching the end of the list
If (GoExcel.CellValue("A" & row) = "") Then
Exit For
End If
i=i+1

Next

RandomRow=CInt(Int((i * Rnd()) + 1))

RandomFact=GoExcel.CellValue("A"&RandomRow)

Facts=RandomFact

 

I'm having the problem with formatting my user form.  I have added the parameter to the user form but it pushes all my drop down boxes to the righ-hand side

 

Form2.png

 

When it should look more like this...

 

Form1.png

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: waynehelley

I think it has something to do with the anchor option...

Message 3 of 3
waynehelley
in reply to: Anonymous

I managed to find a work around by using a multi-row parameter instead of a header...

 

 

Untitled.png

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report