LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Userforms keep popping up, need code to stop it

Hey

I've tried unsuccessfully to stop userforms coming up in the following
code. What can I put in in the different places to stop the userforms
appearing (or the suerform appears and the clcik on the userform button
to happen automatically with screen application off.) Thanks.

Sub opensesame()
Dim change As Variant

clear2

Application.Dialogs(xlDialogOpen).Show USERFORM APPEARS HERE
Application.ScreenUpdating = False
change = ActiveWorkbook.Name
Cells.Select
Selection.Copy
ActiveWindow.ActivateNext USERFORM APPEARS HERE
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
Workbooks(change).Activate USERFROM APPEARS HERE
Application.CutCopyMode = False
Application.DisplayAlerts = False
ActiveWorkbook.Close USERFROM APPEARS HERE
Application.ScreenUpdating = True
On Error Resume Next
Set rng = Application.InputBox( _
"Select Range to Examine, this will be the range over which your
previous grid ran", Type:=8)
Application.ScreenUpdating = False
On Error Resume Next
If rng Is Nothing Then Exit Sub
rng.Select
Selection.RowHeight = 15
Selection.ColumnWidth = 1.5


rng.Select
etc etc etc

End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I stop the end user License agreement from popping up http://[email protected] Excel Worksheet Functions 1 December 19th 09 10:14 PM
How to stop outlook from popping up on an excel spreadsheet peer Excel Discussion (Misc queries) 0 April 25th 08 03:02 PM
How to stop message popping up before open the excel? jenhu Excel Discussion (Misc queries) 2 August 3rd 06 02:02 PM
How do I make the clipboard stop automatically popping up? D Excel Discussion (Misc queries) 1 April 27th 06 05:01 PM
How do i stop the End user License Agreement from Popping Up upon. Excel - Challanged. Excel Discussion (Misc queries) 2 February 15th 05 12:49 AM


All times are GMT +1. The time now is 12:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"