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

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

waynehelley
Collaborator Collaborator
502 Views
2 Replies
Message 1 of 3

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

waynehelley
Collaborator
Collaborator

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
0 Likes
Accepted solutions (1)
503 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

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

0 Likes
Message 3 of 3

waynehelley
Collaborator
Collaborator
Accepted solution

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
0 Likes