Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-15-2014, 06:48 AM
ksigcajun ksigcajun is offline What's wrong with my code? Windows 7 64bit What's wrong with my code? Office 2010 64bit
Advanced Beginner
What's wrong with my code?
 
Join Date: May 2014
Posts: 76
ksigcajun is on a distinguished road
Default What's wrong with my code?


My code seems to run perfectly in updating all links in my document that I run off my desktop. It takes about 10 seconds to run. When I email the form out to a user, the code takes a few minutes to run and seems to be looping. Why is that? Am I doing something wrong?

Code:
Private Sub CommandButton1_Click()
        Dim myRange     
    Set myRange = Selection.Range     
    Selection.WholeStory
    Selection.Fields.Update     
    myRange.Select    
End Sub
Thanks!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong hyphenation NobodysPerfect Word 1 02-04-2014 05:46 AM
What's wrong with my code? Open With (Boy I did something wrong) lostsoul62 Word 1 12-27-2011 07:29 PM
What's wrong with my code? Demo gone wrong RyanNIF Publisher 1 10-19-2011 05:55 AM
column break what am I doing wrong? oaty Word 0 08-12-2010 10:15 AM
What's wrong with my code? PLEASE HELP-wrong formatting???? bruce Word 10 04-10-2010 03:45 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft