Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default "Unload" selection after running macro?

A macro filters my worksheet and hides columns, then selects a range and
pastes it into Word. The last set of commands resets the Autofilter and
unhides everything, then selects A1 so I'm back at the top of my worksheet.
But when it finishes, I have the dotted outline around some cells selected
during the macro, and the Status Bar is asking me to select a spot and hit
Enter.

How do I "unload" this selection after running the macro so it isn't poised
and ready to paste something?

Ed

End of macro code:
' Reset worksheet
' Unhide everything
Sheets("Sheet1").Activate
Sheets("Sheet1").AutoFilterMode = False
With Cells
.EntireColumn.Hidden = False
.EntireRow.Hidden = False
End With
Range("A1").Select
Application.ScreenUpdating = True
MsgBox "I'm done!"
End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default "Unload" selection after running macro?

Ed wrote:

But when it finishes, I have the dotted outline around some cells selected
during the macro, and the Status Bar is asking me to select a spot and hit
Enter.

How do I "unload" this selection after running the macro so it isn't poised
and ready to paste something?


Application.CutCopyMode = False

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default "Unload" selection after running macro?

Thank you.

Ed

"Beto" wrote in message
...
Ed wrote:

But when it finishes, I have the dotted outline around some cells

selected
during the macro, and the Status Bar is asking me to select a spot and

hit
Enter.

How do I "unload" this selection after running the macro so it isn't

poised
and ready to paste something?


Application.CutCopyMode = False

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default "Unload" selection after running macro?

Application.CutCopyMode = False


---
Message posted from http://www.ExcelForum.com/

Reply
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
Sheets("Rpt").Copy different results from running in macro than off excel menu?? tmbo Excel Discussion (Misc queries) 7 August 9th 06 01:13 PM
Running a macro "On Save" heski Excel Discussion (Misc queries) 2 May 18th 06 01:55 PM
How can I invoke running a macro from within an "IF" function. ron Excel Worksheet Functions 11 February 8th 06 03:35 PM
"Programmatic Access to be Denied" displays when running macro on excel in XP Stephen Fong Excel Programming 3 October 21st 03 09:19 AM
Message Window to tell user "Macro Running" keyt Excel Programming 2 October 4th 03 05:28 PM


All times are GMT +1. The time now is 01:25 AM.

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

About Us

"It's about Microsoft Excel"