Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sunantoro
 
Posts: n/a
Default VBA: how to assign or pick a value in other Cell

I'm new in VB.
To pick up a value from other Cell, what I currently know is by using
'Offset (Row,Colum)' to go to that Cell and then assigning the the Active
Cell's Value in a Counter. This way is rather awkward if many cells are
involved.
What is the easier way to do such, ie not by "Moving Around"?
Thanks,
SUNAN
  #2   Report Post  
Rowan
 
Posts: n/a
Default

one way:

Counter = sheets("Sheet1").cells(5,2).value

sets counter to be the value of cell B5

Hope this helps
Rowan

Sunantoro wrote:
I'm new in VB.
To pick up a value from other Cell, what I currently know is by using
'Offset (Row,Colum)' to go to that Cell and then assigning the the Active
Cell's Value in a Counter. This way is rather awkward if many cells are
involved.
What is the easier way to do such, ie not by "Moving Around"?
Thanks,
SUNAN

  #3   Report Post  
Sunantoro
 
Posts: n/a
Default

Thanks Rowan,
It seems to be the answer. I'll try it later.
SUNAN

"Rowan" wrote:

one way:

Counter = sheets("Sheet1").cells(5,2).value

sets counter to be the value of cell B5

Hope this helps
Rowan

Sunantoro wrote:
I'm new in VB.
To pick up a value from other Cell, what I currently know is by using
'Offset (Row,Colum)' to go to that Cell and then assigning the the Active
Cell's Value in a Counter. This way is rather awkward if many cells are
involved.
What is the easier way to do such, ie not by "Moving Around"?
Thanks,
SUNAN


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
How do I Pick a cell with highest value from a range of cells? Chappy1648 Excel Worksheet Functions 1 May 19th 05 01:55 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Calculate Value of Cell From Pick List Choice Buz Excel Discussion (Misc queries) 1 April 5th 05 08:52 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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