Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default How to reference to an other excell book to get the value

The following logic exist to form an archive of the changing values of A1
and A2 [.Cells(xlr, 8) = .Range("A1")]. How the term [.Range("A1")] will
change if the cell A1 is from an other excel book (a "book1" in the desktop)?

Sub ArchiveA2()
Dim xlr As Long
With Sheets("Sheet1")
.Range("G1") = "Value"
xlr = .Cells(Rows.Count, "G").End(xlUp).Row + 1
.Cells(xlr, 7) = Format(Date, "dd/mm/yyyy")
.Cells(xlr, 8) = .Range("A1")
.Cells(xlr, 9) = .Range("A2")
End With
End Sub

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
File Conversion - why does this appear when I open excell wk book barb Excel Worksheet Functions 1 July 28th 08 05:43 PM
How do I email one sheet from within an excell work book file Marguerite Excel Worksheet Functions 1 April 29th 08 05:06 PM
VBA Reference Book apndas[_4_] Excel Programming 3 July 12th 06 05:40 PM
VBA Reference Book? Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 5 January 7th 05 12:45 AM
VBA Reference Book? Ruan[_3_] Excel Programming 1 January 15th 04 08:07 PM


All times are GMT +1. The time now is 10:17 AM.

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"