Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Cell Reference Problem With Cut and Paste

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Cell Reference Problem With Cut and Paste

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
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
how to paste formula but reference a fixed cell HR Excel Discussion (Misc queries) 3 April 7th 06 04:27 AM
Copy-Paste a Row via a cell reference AMY Z. Excel Programming 4 November 10th 05 02:07 AM
Copy and Paste macro needs to paste to a changing cell reference loulou Excel Programming 0 February 24th 05 10:29 AM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM
Problem with =sum(offset(cell reference,w,x,y,z). I want cell reference to be variable [email protected] Excel Worksheet Functions 2 December 11th 04 12:00 AM


All times are GMT +1. The time now is 09:21 PM.

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"