0

I need to read/write the values in cells of a workbook, but I cant do this since I change it to visible = false.

Application.Windows("AutoNodesV2.0.xlsm").Visible = True

Does anyone know an alternative way to read/write these values of my workbook?

others solutions also will help me, even if i have to use another workbook, I just need my .xlsm hidden and show only my form. Because users will have to keep another excel files open too.

the error occurs when i try to activate the woorkbook on this line:

Workbooks("AutoNodesV2.0.xlsm").Worksheets("NodesSheet").Range("D" & 4).Activate

Private Sub Workbook_Open()

    Application.Windows("AutoNodesV2.0.xlsm").Visible = True

    Call fillDesigners
    Call fillCheckers

    MainScreen.Show

...
_____________________________________________________________________________________
Public Sub fillCheckers()
    indx = 1

    Workbooks("AutoNodesV2.0.xlsm").Worksheets("NodesSheet").Range("D" & 4).Activate

    Do While Not ActiveCell.Value = ""
        MainScreen.ListBox_CH.AddItem (indx & "." & ActiveCell.Value)
        indx = indx + 1
        ActiveCell.Offset(1, 0).Activate
    Loop

End Sub

BigBen
  • 46,229
  • 7
  • 24
  • 40

0 Answers0