PC Review


Reply
Thread Tools Rate Thread

Cell Reference Problem With Cut and Paste

 
 
Bob Zimski
Guest
Posts: n/a
 
      23rd Feb 2009
I would like to cut out some rows that I have identified in the first
spreadsheet, and want to paste them to the second spreadsheet. The problem I
am having is that it does not like the below code. How should I be putting
the variables into the code?

Thanks

Dim AccpacBeg As Range
Dim AccpacEnd As Range
ActiveSheet.Rows(" & AccpacBeg.row & ":" & AccpacEnd.row & ").Cut
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      23rd Feb 2009
from
ActiveSheet.Rows(" & AccpacBeg.row & ":" & AccpacEnd.row & ").Cut
to
ActiveSheet.Rows(AccpacBeg.row & ":" & AccpacEnd.row).Cut

"Bob Zimski" wrote:

> I would like to cut out some rows that I have identified in the first
> spreadsheet, and want to paste them to the second spreadsheet. The problem I
> am having is that it does not like the below code. How should I be putting
> the variables into the code?
>
> Thanks
>
> Dim AccpacBeg As Range
> Dim AccpacEnd As Range
> ActiveSheet.Rows(" & AccpacBeg.row & ":" & AccpacEnd.row & ").Cut

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy-Paste a Row via a cell reference =?Utf-8?B?QU1ZIFou?= Microsoft Excel Programming 4 10th Nov 2005 02:07 AM
Copy and Paste macro needs to paste to a changing cell reference =?Utf-8?B?bG91bG91?= Microsoft Excel Programming 0 24th Feb 2005 10:29 AM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. twister212atop@yahoo.com Microsoft Excel Worksheet Functions 2 11th Dec 2004 12:05 AM
cut and paste cell reference problems ssibert Microsoft Excel Worksheet Functions 2 31st Aug 2004 03:18 PM
Cut and paste without altering cell reference ski-rdu Microsoft Excel Worksheet Functions 2 16th Jun 2004 12:18 PM


Features
 

Advertising
 

Newsgroups
 


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