ILOGIC - EXCEL

ILOGIC - EXCEL

Anonymous
Not applicable
286 Views
1 Reply
Message 1 of 2

ILOGIC - EXCEL

Anonymous
Not applicable

Hi all

 

I have a spreadsheet that I have ilogic writing data too and is working well. However, I'd like to adapt the code a little.

 

Previously, I had ilogic check a column in an excel spreadsheet for the document number of my open inventor drawing. If it found a matching cell it then wrote data to various cells in the excel row.

 

I'd like now that ilogic searches - as before - for the document number and If it finds the document number AND cell C is empty then it writes some data.

 

can anyone shine some light on this please? )

 

 

 

SyntaxEditor Code Snippet

'Search for the file name in column A
For oRow = RowStart To RowEnd

If (GoExcel.CellValue("A" & oRow)) = oDocNumber & (GoExcel.CellValue("C" & oRow) = "") Then
    GoExcel.CellValue("G" & oRow) = "TEST WORKED"

 

 

 

 

0 Likes
287 Views
1 Reply
Reply (1)
Message 2 of 2

MechMachineMan
Advisor
Advisor

Have you tried using the code you wrote with the appropriate "End if" and "Next" statements?


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes