Link to home
Start Free TrialLog in
Avatar of QPR
QPRFlag for New Zealand

asked on

VB/Excel question

I have a function which (successfully) opens a worksheet and deletes a particular row.. all is good.
But when I then manually go and open the spreadsheet the (only) worksheet is hidden and I need to go to format-sheet-unhide.
Any ideas why this would happen?
VB6/Excel 2k

Jay
Avatar of JoaTex
JoaTex

Hi
Question?
Did you close your aplication before open the Spreadsheet?
Could you paste the code of your function here?
Avatar of QPR

ASKER

Have found the answer thanks....
the line of code to stop it happening is:
wbk.Parent.Windows(wbk.Name).Visible = True

where wbk is my Excel object.
Thanks again
Jay
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial