Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sin Sin is offline
external usenet poster
 
Posts: 6
Default Copy & paste cells fr open worksheet then close the worksheet

Is it possible to have some code that copy some specific cells of the active
worksheet (from one workbook), then paste the data to specific cells of
another worksheet from a closed workbook. After the process is completed,
the code will automatic close the active workbook without saving (avoid the
reminder message of saving) then open the workbook is which the data was
saved, can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Copy & paste cells fr open worksheet then close the worksheet

Your code could open the second workbook.
The copy|paste the cells you want.
then save(???) the second file
then close the first workbook without saving.

If you record a macro when you do it manually, you may end up with the code you
want.

Sin wrote:

Is it possible to have some code that copy some specific cells of the active
worksheet (from one workbook), then paste the data to specific cells of
another worksheet from a closed workbook. After the process is completed,
the code will automatic close the active workbook without saving (avoid the
reminder message of saving) then open the workbook is which the data was
saved, can anyone help?


--

Dave Peterson
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
Open book, copy and paste from sheet, and then close.... Darin Kramer Excel Programming 5 September 14th 06 04:00 PM
formulae to copy cells from 1 worksheet and paste into another? MikeR-Oz New Users to Excel 8 March 23rd 06 11:40 AM
copy and paste cells to a different worksheet according to IF results faze Excel Programming 1 February 1st 06 02:41 PM
How can I use open/close Grouped cells in a Protected Worksheet? Andy Bowshell Excel Discussion (Misc queries) 2 January 16th 06 02:38 PM
With VBA from Excel: Open Project, extract resource list and copy it to a worksheet, close project. Tony Excel Programming 1 October 18th 05 03:53 PM


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