LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Enter data in cell referenced in a cell

Brian was thinking very hard :
On Thursday, April 26, 2012 8:15:16 PM UTC+2, GS wrote:
Brian submitted this idea :
In cell A2 I have determined the number 3
In A3 I have created a cell reference
Scoresheet1!AD3
Which references a cell on another sheet,
I am looking for the VBA code which will enable me to place the number in
cell A2 in the cell rerenced in cell A3 I am using Excel 2007
appreciate any help.


This presumes the sheet containing the target cell (A2) is the active
sheet, AND the cell containing the ref (A3) is the active cell.

Dim vSource As Variant
vSource = Split(ActiveCell.Value, "!")
ActiveCell.Offset(0, -1).Value = _
Sheets(vSource(0)).Range(vSource(1)).Value

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


Thank you this works perfectly. Your assistance is much appreciated


You're welcome! I appreciate the feedback...

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion




 
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
Referenced cell displays formula, not data MZ New Users to Excel 4 January 3rd 10 08:59 PM
Highlight Cell Based Upon Referenced Cell Data Tee Excel Worksheet Functions 3 September 12th 08 05:26 PM
Can data validation ranges be linked to a referenced cell? McSorley Excel Programming 1 September 5th 08 04:40 AM
Having cell contents enter into cell referenced elbows Excel Discussion (Misc queries) 1 March 10th 06 04:14 PM
The match and lookup functions can find literal data but not the same data referenced from a cell Jeff Melvaine Excel Discussion (Misc queries) 3 April 30th 05 01:29 PM


All times are GMT +1. The time now is 11:56 PM.

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"