LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default range copy and paste special within macro

I am trying to select a range (hyperlink) a table and replace that range
(application.goto ...etc) with another based on the row reference number
contained in cell V22. This procedure is part of a macro Using the code below
appears to be ignoring either the copy or the paste special function, the
result being no error but the range remaining unchanged. Any help much
appreciated.

Range("V24").Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
Selection.Copy
If V22 = 1 Then
Application.Goto Reference:="AW21:BL21"
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
ElseIf V22 = 2 Then
Application.Goto Reference:="AW22:BL22"
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
"above repeated with incremental changes to goto reference"
.................................................. .........................
End If

--
Message posted via http://www.officekb.com

 
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
Special Copy, Paste Special macro usmc-r70 Excel Programming 3 July 2nd 09 08:12 AM
Copy excel text on a range and paste special to Word Daniel Excel Programming 5 March 31st 08 06:52 PM
Copy range in macro using paste special values Jeff Excel Discussion (Misc queries) 2 August 20th 07 08:12 PM
Copy and Paste Special Dynamic Range BigH Excel Programming 1 February 20th 06 10:16 PM
Select Range every 20 rows copy & paste special Adam Excel Programming 1 June 22nd 04 11:43 PM


All times are GMT +1. The time now is 07:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"