Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need Help with copying and pasting with var.


HI THere Excel Guru's

I have a problem that I cannot solve and have read about 200 posts here
this morning but cannot find anything that suits.

This is what I want to do.

I have a master workbook with each worksheets name as a month.

THen I have another workbook with two worksheets - Summary and Current

Ok I want to display in the current sheet the range A1:b65
BUT

I want to be able to choose individual months in the Master workbook
and display the above range via the variable month.

Should I do this with a copy command or import.

Please give suggestions and how to.


thanks for all the previous help


--
Mikeice
------------------------------------------------------------------------
Mikeice's Profile: http://www.excelforum.com/member.php...o&userid=22467
View this thread: http://www.excelforum.com/showthread...hreadid=382987

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Need Help with copying and pasting with var.


Consider setting up an Advanced Filter on thr CURRENT sheet, to pull
information from one of the monthly sheets.

If you perform this operation once, while running the macro recorder, it
should not be difficult to generalise the resultant code to operate on a
user selected month sheet.

If you are not familiar with the Advanced Filter feature, see Debra
Dalgleish's pages on Advanced Filter at:

http://www.contextures.com/xladvfilter01.html

and:

http://www.contextures.com/xladvfilter02.html

Note particularly, Debra's step by step explanation for 'Extracting Data To
another Worksheet'

---
Regards,
Norman



"Mikeice" wrote in
message ...

HI THere Excel Guru's

I have a problem that I cannot solve and have read about 200 posts here
this morning but cannot find anything that suits.

This is what I want to do.

I have a master workbook with each worksheets name as a month.

THen I have another workbook with two worksheets - Summary and Current

Ok I want to display in the current sheet the range A1:b65
BUT

I want to be able to choose individual months in the Master workbook
and display the above range via the variable month.

Should I do this with a copy command or import.

Please give suggestions and how to.


thanks for all the previous help


--
Mikeice
------------------------------------------------------------------------
Mikeice's Profile:
http://www.excelforum.com/member.php...o&userid=22467
View this thread: http://www.excelforum.com/showthread...hreadid=382987



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need Help with copying and pasting with var.

Assume you put the text Jan in cell F1

in another cell

=indirect(F1 & "!A1")

to display Jan!A1 or Feb!A1 depending on what is in F1

--
Regards,
Tom Ogilvy

"Mikeice" wrote in
message ...

HI THere Excel Guru's

I have a problem that I cannot solve and have read about 200 posts here
this morning but cannot find anything that suits.

This is what I want to do.

I have a master workbook with each worksheets name as a month.

THen I have another workbook with two worksheets - Summary and Current

Ok I want to display in the current sheet the range A1:b65
BUT

I want to be able to choose individual months in the Master workbook
and display the above range via the variable month.

Should I do this with a copy command or import.

Please give suggestions and how to.


thanks for all the previous help


--
Mikeice
------------------------------------------------------------------------
Mikeice's Profile:

http://www.excelforum.com/member.php...o&userid=22467
View this thread: http://www.excelforum.com/showthread...hreadid=382987



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need Help with copying and pasting with var.


Does indirect work if the workbook is elswhere on another server in
workbook that is closed??

I couldn't get it to work.

Any further info much appreciate

--
Mikeic
-----------------------------------------------------------------------
Mikeice's Profile: http://www.excelforum.com/member.php...fo&userid=2246
View this thread: http://www.excelforum.com/showthread.php?threadid=38298

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need Help with copying and pasting with var.

No, indirect doesn't work on closed workbooks. I doubt you will find
anything except VBA code that will support doing something like that.

--
Regards,
Tom Ogilvy

"Mikeice" wrote in
message ...

Does indirect work if the workbook is elswhere on another server in a
workbook that is closed??

I couldn't get it to work.

Any further info much appreciated


--
Mikeice
------------------------------------------------------------------------
Mikeice's Profile:

http://www.excelforum.com/member.php...o&userid=22467
View this thread: http://www.excelforum.com/showthread...hreadid=382987





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Need Help with copying and pasting with var.

Hi Mikeice,

I misread:

THen I have another workbook with two worksheets - Summary and
Current


as

THen I have another two worksheets - Summary and Current

In consequence, my response was based on the mistaken premise of a single
workbook scenario.

My apologies, I should read more attentively!

---
Regards,
Norman



"Norman Jones" wrote in message
...

Consider setting up an Advanced Filter on thr CURRENT sheet, to pull
information from one of the monthly sheets.

If you perform this operation once, while running the macro recorder, it
should not be difficult to generalise the resultant code to operate on a
user selected month sheet.

If you are not familiar with the Advanced Filter feature, see Debra
Dalgleish's pages on Advanced Filter at:

http://www.contextures.com/xladvfilter01.html

and:

http://www.contextures.com/xladvfilter02.html

Note particularly, Debra's step by step explanation for 'Extracting Data
To another Worksheet'

---
Regards,
Norman



"Mikeice" wrote in
message ...

HI THere Excel Guru's

I have a problem that I cannot solve and have read about 200 posts here
this morning but cannot find anything that suits.

This is what I want to do.

I have a master workbook with each worksheets name as a month.

THen I have another workbook with two worksheets - Summary and Current

Ok I want to display in the current sheet the range A1:b65
BUT

I want to be able to choose individual months in the Master workbook
and display the above range via the variable month.

Should I do this with a copy command or import.

Please give suggestions and how to.


thanks for all the previous help


--
Mikeice
------------------------------------------------------------------------
Mikeice's Profile:
http://www.excelforum.com/member.php...o&userid=22467
View this thread:
http://www.excelforum.com/showthread...hreadid=382987





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
Copying and Pasting davew21 Excel Discussion (Misc queries) 1 March 31st 06 03:40 PM
Copying and pasting ??? NorcalTruck Excel Discussion (Misc queries) 3 December 27th 05 08:31 PM
Copying and Pasting Tia Excel Discussion (Misc queries) 4 June 6th 05 08:54 PM
Copying and Pasting teresa Excel Programming 2 May 29th 05 10:24 PM
Copying & Pasting Michael[_10_] Excel Programming 1 August 28th 03 11:00 AM


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