Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default I have two workbooks

I have two workbooks, for instance book1 (currently active) and book2, I
want press combination of Ctrl, Shift and C when book1 is active to open
book2, after that select some data from book2 and press combination of Ctrl,
Shift and t to transfer data selected from book2 to book1. Please tell me the
way using VBA to make the task. I already conducted but failed

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default I have two workbooks

Ok, you are in 'book1', first open 'book2':

workbooks.open("[path]\Book2.xls")

Now activate Book2

windows("Book2.xls").activate

'select the data you want to copy

windows("Book1.xls").activate

'now put the data into book1

workbooks.close("Book2.xls")




"anh82tb via OfficeKB.com" <u11343@uwe wrote in message
news:64437f235655f@uwe...
I have two workbooks, for instance book1 (currently active) and book2, I
want press combination of Ctrl, Shift and C when book1 is active to open
book2, after that select some data from book2 and press combination of
Ctrl,
Shift and t to transfer data selected from book2 to book1. Please tell me
the
way using VBA to make the task. I already conducted but failed

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



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
Regular Workbooks vs. Binary Workbooks Jerry Excel Discussion (Misc queries) 1 April 28th 10 04:03 AM
Updating Workbooks from multiple links Workbooks TimJames Excel Worksheet Functions 1 December 15th 07 03:34 PM
Copy/ move selected data from workbooks to seperate worksheets or workbooks Positive Excel Worksheet Functions 1 August 30th 07 04:54 PM
Display 2 formulas from source workbooks to destination workbooks Excel_seek_help Excel Discussion (Misc queries) 4 April 27th 06 08:13 PM
suddenly my excel workbooks are "shared workbooks" Maggie's mom Excel Discussion (Misc queries) 1 August 28th 05 09:20 PM


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