#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Help with a macro

All I want it to do is copy one section of a tab to another section on the
same tab and change the formulas to values. When I run it all it does is
take to another tab in the spreadsheet.

Help!

Amy


Sub SummaryCopy()
'
' SummaryCopy Macro
'
' Keyboard Shortcut: Ctrl+Shift+C
'
Range("A2:P15").Select
Selection.Copy
Range("A17").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
End Sub



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Help with a macro

I see no reason why your macro would change worksheets. As a random attempt,
perhaps try this shorter code:

Sub ValueCopy()
Range("A17:P30") = Range("A2:P15").Value
End Sub

Note that you'll need to setup your shortcut key again.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"cvgairport" wrote:

All I want it to do is copy one section of a tab to another section on the
same tab and change the formulas to values. When I run it all it does is
take to another tab in the spreadsheet.

Help!

Amy


Sub SummaryCopy()
'
' SummaryCopy Macro
'
' Keyboard Shortcut: Ctrl+Shift+C
'
Range("A2:P15").Select
Selection.Copy
Range("A17").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
End Sub



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Help with a macro

Luke,

Thanks so much for helping. I typed in your code and it worked flawlessly.
Though I still hate Excel macros (Lotus was so much simpler) I feel empowered
to try more.

Amy

"Luke M" wrote:

I see no reason why your macro would change worksheets. As a random attempt,
perhaps try this shorter code:

Sub ValueCopy()
Range("A17:P30") = Range("A2:P15").Value
End Sub

Note that you'll need to setup your shortcut key again.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"cvgairport" wrote:

All I want it to do is copy one section of a tab to another section on the
same tab and change the formulas to values. When I run it all it does is
take to another tab in the spreadsheet.

Help!

Amy


Sub SummaryCopy()
'
' SummaryCopy Macro
'
' Keyboard Shortcut: Ctrl+Shift+C
'
Range("A2:P15").Select
Selection.Copy
Range("A17").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
End Sub



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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


All times are GMT +1. The time now is 03:35 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"