Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default Copying a sheet to a certain position

Hi there

I have this code:

Windows("Feedback Form.xls").Activate
ActiveSheet.copy Befo=Workbooks("Feedback Master Sheet.xls"). _
Sheets(2)

to copy a worksheet into another spreadsheet.

I want to be able to copy the sheet to a specific position in feedback
Master Sheet.xls

on the spreadsheet (feedback form.xls) in cell O5 I have a possibility of 3
sheet names that I want the copied sheet to be placed before. These are
Alend, JLend, GWend.

Is it possible to write a piece of code that copies the worksheet to before
ALend if O5 = ALend and before JLend if O5= JLend etc

Any help given is greatly appreciated

Thanks in advance

Jamie
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying a sheet to a certain position


Is this what you are after?

Dim Before As String

Before = ActiveSheet.Range("O5")

ActiveSheet.copy Befo=Workbooks("Feedback Master Sheet.xls"). _
Sheets(Before

--
Nick
-----------------------------------------------------------------------
Nicke's Profile: http://www.excelforum.com/member.php...nfo&userid=293
View this thread: http://www.excelforum.com/showthread.php?threadid=26951

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
change sheet position right to left Aicha Excel Discussion (Misc queries) 4 July 22nd 07 10:04 AM
macro sheet position jay d Excel Worksheet Functions 2 June 5th 06 02:51 PM
how can i trace position in marks sheet adeel afzal via OfficeKB.com Excel Worksheet Functions 3 July 31st 05 08:39 PM
Size & Position charts on Sheet Jon Peltier[_8_] Excel Programming 0 September 17th 04 04:47 AM
Sheet Position James Weaver Excel Programming 4 October 8th 03 04:46 PM


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