I define workbook as variable with FilePicker. At the top I defined my variable as public and string. I tried to declare it as workbook but it doesnt work. Having it defined as string when I try to get into this workbook in another module I get the following compile error:
Invalid qualifier.
Any suggestions what is wrong?
Public wipreport As String
sub wip()
With Application.FileDialog(msoFileDialogFilePicker)
        'Makes sure the user can select only one file
        .AllowMultiSelect = False
        .Title = "Select WIP Report"
        .ButtonName = "OK"
        'Filter to just the following types of files to narrow down selection options
        .Filters.Add "Excel Files", "*.xlsx; *.xlsm; *.xls; *.xlsb", 1
        'Show the dialog box
        .Show
        'Store in fullpath variable
        wipreport = .SelectedItems.Item(1)
    End With
end sub
Line of code in another module, where I get this compile error:
wipreport.Worksheets("1. WIP report").Select
Thank You for help.
 
     
     
    