Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bud Hughes
 
Posts: n/a
Default Copy Paste Special Macro

I need to copy the value of a formula into a cell one down and one to the
left of the current cell I am copying. Rather then right click and select
the options. I can build a macro to copy then paste special but...I want the
copy to be the current cell I am in then move the active cell on down and one
left then paste special. Is there a way to use visual basic to move one cell
left and one cell down and move only the information in the cell?
  #2   Report Post  
Gary's Student
 
Posts: n/a
Default

The following sub will do what you want:

Sub DownAndLeft()
Dim x As Variant
x = Selection.Value
Selection.Offset(1, -1) = x
End Sub

Select the cell with the formula and run the macro.

Good Luck
--
Gary's Student


"Bud Hughes" wrote:

I need to copy the value of a formula into a cell one down and one to the
left of the current cell I am copying. Rather then right click and select
the options. I can build a macro to copy then paste special but...I want the
copy to be the current cell I am in then move the active cell on down and one
left then paste special. Is there a way to use visual basic to move one cell
left and one cell down and move only the information in the cell?

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Another option (manual, though):

If you rightclick on that cell's border, you can drag it to where you want it
(down and to the left) and when you let go, you'll be presented with a list of
options.

One of them is "copy here as values only"

(sometimes, it's quicker than finding the macro to run!)

===
Another option...

Add a "Paste Values" icon to your favorite toolbar.
(tools|Customize|commands tab|edit category, look for "paste values")

Then you can hit the copy icon (or ctrl-c), move the cursor, and hit that "paste
values" icon.

Bud Hughes wrote:

I need to copy the value of a formula into a cell one down and one to the
left of the current cell I am copying. Rather then right click and select
the options. I can build a macro to copy then paste special but...I want the
copy to be the current cell I am in then move the active cell on down and one
left then paste special. Is there a way to use visual basic to move one cell
left and one cell down and move only the information in the cell?


--

Dave Peterson
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
copy and paste He4Giv Excel Discussion (Misc queries) 3 June 23rd 05 12:27 AM
Copy and Paste and keep format the same Brian Caraher Excel Discussion (Misc queries) 1 March 17th 05 02:05 PM
macro to copy columns to sheet Es Excel Discussion (Misc queries) 1 March 7th 05 02:03 PM
Copy & Paste Brian Keanie Excel Discussion (Misc queries) 1 February 5th 05 11:56 AM
Paste Special Question Kevin Excel Discussion (Misc queries) 3 November 30th 04 11:34 PM


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