Macro Timing Issue?

amerifax

Board Regular
Joined
Dec 17, 2008
Messages
247
I'm trying to copy the current location, cell, then moving to a different sheet and pasting the value. It will have to drop down a cell before the past. I used the record with no good results. It might be a timing issue, which I don't understand.
Sub STGCheck()
'
' STGCheck Macro
' Copy location to WorkSheet Remove
'
' Keyboard Shortcut: Ctrl+Shift+M
'
Range("B181148").Select
Selection.Copy
Sheets("Remove").Select
Range("A6").Select
ActiveSheet.Paste
Sheets("I-Drive(Files-Only)").Select
Application.CutCopyMode = False
End Sub
Bob
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Are you trying to copy the active cell to the first blank cell in col A on the Remove sheet?
 
Upvote 0
Are you trying to copy the active cell to the first blank cell in col A on the Remove sheet?
Yes as to copy the active cell. The sheet called remove will have a column of data, pasted from this macro. The info would be paste in the first blank row on Sheet Remove. After the paste, it would return back to the same location, sheet "I-Drive(Files-Only)". The location would be where the copy came from and no longer an active cell. This way I would continue to research for more cells I need to copy to "Remove".

Side Note: you know maybe I need to rename that sheet, "Remove is confusing to me. Ha:giggle:.
Bob
 
Last edited:
Upvote 0
Ok, how about
VBA Code:
Sub STGCheck()
'
' STGCheck Macro
' Copy location to WorkSheet Remove
'
' Keyboard Shortcut: Ctrl+Shift+M
'

ActiveCell.Copy Sheets("Remove").Range("A" & Rows.Count).End(xlUp).Offset(1)
End Sub
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,550
Messages
6,114,265
Members
448,558
Latest member
aivin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top