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: 3
Default Range("A1,F96").Select - What's wrong with that?

It's been years since I tried to do anything with excel that involved
any more than a simple macro, so this project is much harder that it
would've been back then.

I'm trying to copy the contents of a range of cells from one worksheet
to another. My code looks like this:

Private Sub Jenn_Qte()

Application.ScreenUpdating = False

ActiveSheet.Unprotect Password:="1234" 'unprotects the
destination worksheet

Sheets("Items, Cat").Select 'select source
worksheet
ActiveSheet.Unprotect Password:="1234" 'unprotect source
worksheet
Selection.AutoFilter Field:=1, Criteria1:="<" 'filter data,
hide all blanks
Range("A1,F96").Select 'THIS IS WHERE
IT STOPS - supposed to select the filtered
data
Selection.Copy 'copy data

Sheets("Quote").Select 'select
destination worksheet
Range("A14").Select 'select cell
where data should be pasted
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=False

Sheets("Items, Cat").Select 'back to the
source worksheet
Selection.AutoFilter Field:=1 'un-filter it
Range("C3").Select 'cursor in
this cell
ActiveSheet.Protect Password:="1234" 'protect the worksheet

Sheets("Quote Body").Select 'to the
destination sheet again
Range("F6").Select 'cursor in
F6 please
ActiveSheet.Protect Password:="1234" 'lock it back up :)

Application.ScreenUpdating = True

End Sub

Is there a glaring problem there that I just don't see? Does anyone
have any suggestions? Anything will be very appreciated.

Thanks in advance,
Jenn

 
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
Range("Reset Sheet!F13").Select Makes VBA Code Fail ToferKing Excel Programming 3 July 11th 07 04:18 AM
How to change "automax" to "autosum"? (probablyl wrong terminology) [email protected] Excel Discussion (Misc queries) 5 November 6th 06 08:07 PM
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" Luc[_3_] Excel Programming 2 September 28th 05 08:37 PM
How do I select a range of cells without doing Range("a3", "f3").. Miriam Excel Programming 2 December 20th 04 11:30 PM
Using "Cells" to write "Range("A:A,H:H").Select" Trip Ives[_2_] Excel Programming 3 June 5th 04 03:13 PM


All times are GMT +1. The time now is 02:56 PM.

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"