Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Imports required for Excel Automation in VB.NET

Status
Not open for further replies.

lklo

Industrial
Nov 24, 2010
226

Hi

Does anybody know what Imports **** is necessary in nx journal,
so it will be possible to use Range (excel).

I need to dim variable Cell.
to be used in a little sequence ...
------------------------------
But I got an error in line 40 - type ´range´ is not defined

line 40: Dim Cell as Range

For Each Cell In ws.UsedRange.Cells
If Cell.Value = "" Then Cell = Num
MsgBox ("Checking cell " & Cell & " for value.")
Next


lklo
 
Replies continue below

Recommended for you

Hi, if you haven't, please try adding the -Microsoft Excel (office version) Object Library- reference, and then:

Imports Excel = Microsoft.Office.Interop.Excel

Dim Cell As Excel.Range

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor