Welcome to Dream.In.Code
Become a VB Expert!

Join 149,968 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,381 people online right now. Registration is fast and FREE... Join Now!




application.screenupdating

 
Reply to this topicStart new topic

application.screenupdating, application.screenupdating isn't working

jbott59
12 Dec, 2007 - 05:19 PM
Post #1

New D.I.C Head
*

Joined: 12 Dec, 2007
Posts: 2


My Contributions
I am running the code below, the application.screenupdating = false is not running properly. The screen is updating/flickering back and forth as it goes from worksheet to worksheet. Any ideas why? I have tried stepping through the code one line at a time and when I "hover" over the line, it tells me screenupdating still = true

Thanks
Joe

CODE
Public Sub Calculate_cb_Click()
Dim a, b, c As String
Dim x, y, z As Integer
Application.ScreenUpdating = False

ActiveWorkbook.Worksheets("Main").Select
a = ActiveWorkbook.Worksheets("Main").TextBox1.Text
ActiveWorkbook.Worksheets("Main").Range("N1").Value = a

If ActiveWorkbook.Worksheets("Main").Range("N4").Value = "True" Then
    ActiveWorkbook.Worksheets("Caesar").Select
    ActiveWorkbook.Worksheets("Caesar").Range("CaesarCode").Value = a
    ActiveWorkbook.Worksheets("Caesar").Range("CipheredCaesar").Select
        Selection.Copy
        ActiveWorkbook.Worksheets("Main").Select
        ActiveWorkbook.Worksheets("Main").Range("Ciphered").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Application.CutCopyMode = False
    
    ElseIf ActiveWorkbook.Worksheets("Main").Range("O4").Value = "True" Then
    ActiveWorkbook.Worksheets("Vigener").Select
    ActiveWorkbook.Worksheets("Vigener").Range("Codeword1").Formula = "=Codeword"
    ActiveWorkbook.Worksheets("Vigener").Range("VigenerCode").Value = a
    ActiveWorkbook.Worksheets("Vigener").Range("CipherVigener").Select
        Selection.Copy
        ActiveWorkbook.Worksheets("Main").Select
        ActiveWorkbook.Worksheets("Main").Range("Ciphered").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Application.CutCopyMode = False
    
    Else
        MsgBox ("You must select the type of shift.")
End If
ActiveWorkbook.Worksheets("Main").Select
Application.ScreenUpdating = True

End Sub

User is offlineProfile CardPM
+Quote Post

jbott59
RE: Application.screenupdating
12 Dec, 2007 - 06:51 PM
Post #2

New D.I.C Head
*

Joined: 12 Dec, 2007
Posts: 2


My Contributions
still nothing. anybody??? anybody have the slightest idea?
User is offlineProfile CardPM
+Quote Post

LookNAO
RE: Application.screenupdating
28 Dec, 2007 - 12:58 PM
Post #3

D.I.C Head
**

Joined: 28 Dec, 2007
Posts: 66



Thanked: 1 times
My Contributions
I have run into the same issue...

Try:
Activeworkbook.visible = false when running the code...

at the end:
Activeworkbook.visible = true

Or try:
Activeworkbook.Worksheets.visible = false

Somewhere in there is a visible setting...

Good Luck


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 06:31PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month