Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Abay
 
Posts: n/a
Default More on Macros - Excel 97

I realize that I also need to be able to refer in relative terms to the
workbook next to the current workbook.. So what I need to is to cut and
paste the value of a cell from a workbook to the left of the current one
into the current cell. i.e. cut and paste from workbook B into workbook A
using relativity so to speak. I want to use the macro for a number of
paired work books in the spread sheet. Work book B is always to the left
of Work book A.

Any help would be much appreciated!

Abay





  #2   Report Post  
Abay
 
Posts: n/a
Default

Yes, mixed work books and work sheets up in my post .. apologies, really am
a newbie .. abay


"Tom Ogilvy" wrote in message
...
I assume by workbook you mean worksheet

activesheet.previous.Range("A1").Copy Destination:=ActiveCell

--
Regards,
Tom Ogilvy

"Abay" wrote in message
...
I realize that I also need to be able to refer in relative terms to the
workbook next to the current workbook.. So what I need to is to cut and
paste the value of a cell from a workbook to the left of the current one
into the current cell. i.e. cut and paste from workbook B into workbook

A
using relativity so to speak. I want to use the macro for a number of
paired work books in the spread sheet. Work book B is always to the

left
of Work book A.

Any help would be much appreciated!

Abay









  #3   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

I assume by workbook you mean worksheet

activesheet.previous.Range("A1").Copy Destination:=ActiveCell

--
Regards,
Tom Ogilvy

"Abay" wrote in message
...
I realize that I also need to be able to refer in relative terms to the
workbook next to the current workbook.. So what I need to is to cut and
paste the value of a cell from a workbook to the left of the current one
into the current cell. i.e. cut and paste from workbook B into workbook A
using relativity so to speak. I want to use the macro for a number of
paired work books in the spread sheet. Work book B is always to the left
of Work book A.

Any help would be much appreciated!

Abay







  #4   Report Post  
Abay
 
Posts: n/a
Default

Thanks Tom for you suggestion, but I am having trouble getting what I want
to work. The following works fine when I use absolute references to the
work sheet names.

Sub Uhrs()
'
' Updated hrs Macro
' Macro recorded 7/3/05 by Abay
'
' Keyboard Shortcut: Ctrl+h
'
Sheets("MSH").Select
Range("B29").Select
Selection.Copy
Sheets("M. Stevanak").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False
End Sub

I get the values from B29 in MSH work sheet into the current cell in work
sheet "M. Stevanak". When I tried to add in your code (I am at the state of
always recording macros, not proficient in VB code as you may have guessed)
I keep getting errors .. obviously I am doing it wrong:(

Some more help would really be appreciated.

abay





  #5   Report Post  
Koen_VN
 
Posts: n/a
Default


Hi Abay,

As far as I understand, it seems that you are :
* selecting data in a specific cell from a specific sheet;
* then trying to copy it in another sheet in a specific cell.

I'll try to help but I don't understand what you would like to
do afterwards with the copied data.

Koen


--
Koen_VN
------------------------------------------------------------------------
Koen_VN's Profile: http://www.excelforum.com/member.php...o&userid=25593
View this thread: http://www.excelforum.com/showthread...hreadid=384206

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Executing of excel Macros. KarthikK Excel Discussion (Misc queries) 4 June 28th 05 12:00 PM
help with excel (maybe macros) laskuh Excel Worksheet Functions 1 March 20th 05 12:03 PM
How do I update Excel 2000 macros to work in Excel 2002? BobPetrich Excel Discussion (Misc queries) 3 January 4th 05 04:06 PM
how can i edit excel 4 macros in Excel 2003 Pedrito1967 Excel Worksheet Functions 0 December 7th 04 07:21 PM


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