I know my questions are probably pretty elementary, but this VBA thing is OTJ for me.
My macro opens files in a folder and takes various actions of the activated sheets. I thought using Application.ScreenUpdating = False and Application.ScreenUpdating = True would keep the opened workbooks from being visible as the macro does it thing, but such is not the case. In my case there is a macro that opens the files and depending on data in the file calls the appropriate macro to run stuff. Within those macros I have
I found Application.WindowState=xlMinimize, but then my macro did not behave correctly (as far as the results).
I even tried Windows(LoanName).Visible = xlVeryHidden, but that did not do the trick either. LoanName is the name of the workbook.
Once again, I am afraid my problem is the lack of me fully understanding or I have the placement of information in the wrong place.
My macro opens files in a folder and takes various actions of the activated sheets. I thought using Application.ScreenUpdating = False and Application.ScreenUpdating = True would keep the opened workbooks from being visible as the macro does it thing, but such is not the case. In my case there is a macro that opens the files and depending on data in the file calls the appropriate macro to run stuff. Within those macros I have
Code:
Application.ScreenUpdating = False
Do stuff..
Application.ScreenUpdating = True
I found Application.WindowState=xlMinimize, but then my macro did not behave correctly (as far as the results).
I even tried Windows(LoanName).Visible = xlVeryHidden, but that did not do the trick either. LoanName is the name of the workbook.
Once again, I am afraid my problem is the lack of me fully understanding or I have the placement of information in the wrong place.