ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Simple coding in Excel (https://www.excelbanter.com/excel-discussion-misc-queries/65043-simple-coding-excel.html)

craigs

Simple coding in Excel
 
I have created a series of forms which go from one to another via a macro,
which is simply:

Sheets("Implementation").Select
DialogSheets("Implementation").Show

(created by record macro).

There are two issues:

1. This same code does not work when assigned to auto_macro for the first
form?
2. After moving to subsequent forms, the previous forms are visible (but
not accessible) in the background. This just looks untidy and I would like a
command to close them.

Many thanks

Bob

Simple coding in Excel
 
Have you tried?

Sheets("Sheet Name").Visible = True
Sheets("Sheet Name2).Visible = False


"craigs" wrote:

I have created a series of forms which go from one to another via a macro,
which is simply:

Sheets("Implementation").Select
DialogSheets("Implementation").Show

(created by record macro).

There are two issues:

1. This same code does not work when assigned to auto_macro for the first
form?
2. After moving to subsequent forms, the previous forms are visible (but
not accessible) in the background. This just looks untidy and I would like a
command to close them.

Many thanks



All times are GMT +1. The time now is 11:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com