Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

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
0
QPR
Asked:
QPR
1 Solution
 
JoaTexCommented:
Hi
Question?
Did you close your aplication before open the Spreadsheet?
0
 
SteinerCommented:
Could you paste the code of your function here?
0
 
QPRAuthor Commented:
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
0
 
SpideyModCommented:
PAQ'd and points refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now