Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Controlling a cell in a worksheet

Hello group,

This time, going from VBA to the worksheet.

In the cell F13 is $C$6
Range(Range("F13")) = "Lotus" results in C6 getting the value Lotus

Can this be done in a worksheet ?
Can one put in A1 some code that will do the same ?

Thanks,

Michael Singmin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Controlling a cell in a worksheet

No, a function can only return a value, not modify "other" cells, except
itself...

--
Regards

Juan Pablo González

"Michael Singmin" wrote in message
...
Hello group,

This time, going from VBA to the worksheet.

In the cell F13 is $C$6
Range(Range("F13")) = "Lotus" results in C6 getting the value Lotus

Can this be done in a worksheet ?
Can one put in A1 some code that will do the same ?

Thanks,

Michael Singmin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Controlling a cell in a worksheet

I think OP measn something different.

cell a1 contains the string "c6"
cell c6 contains "Lotus"

formula =indirect(a1) will result in "Lotus"


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Juan Pablo González" wrote:

No, a function can only return a value, not modify "other" cells, except
itself...


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Controlling a cell in a worksheet

Mhm... maybe, but the VBA code puts "Lotus" in C6..., hence my comment.
(Unless the OP puts ="Lotus" in C6 <g )

--
Regards

Juan Pablo González

"keepITcool" wrote in message
...
I think OP measn something different.

cell a1 contains the string "c6"
cell c6 contains "Lotus"

formula =indirect(a1) will result in "Lotus"


keepITcool



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Controlling a cell in a worksheet

oops :) just saw the Range(Range() construct...
and was misled by the OP's phrase 'results in C6 getting'

to OP:
it's like Juan says... 'it can pull but it cant push'




keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Juan Pablo González" wrote:

Mhm... maybe, but the VBA code puts "Lotus" in C6..., hence my comment.
(Unless the OP puts ="Lotus" in C6 <g )




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Controlling a cell in a worksheet

Thank you for the discussion,

I like the rule: Pull but not Push

Btw, John Walkenbach proves otherwise for special cases.
http://j-walk.com/ss/excel/odd/odd06.htm

Cheers,

Michael Singmin
================================================== =====

keepITcool wrote:

oops :) just saw the Range(Range() construct...
and was misled by the OP's phrase 'results in C6 getting'

to OP:
it's like Juan says... 'it can pull but it cant push'




keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Juan Pablo González" wrote:

Mhm... maybe, but the VBA code puts "Lotus" in C6..., hence my comment.
(Unless the OP puts ="Lotus" in C6 <g )


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
Controlling word wrap in a cell Victor Delta[_2_] Excel Discussion (Misc queries) 2 February 14th 10 10:58 PM
Controlling which cell you go to when Tab is entered carrera Excel Discussion (Misc queries) 1 August 22nd 07 04:53 PM
Controlling text in an Excel worksheet sprice Excel Worksheet Functions 1 September 10th 05 12:41 AM
Controlling Cell/Cursor Placement MarkT Excel Discussion (Misc queries) 3 August 17th 05 02:54 PM
controlling cell borders in excel using VB eli silverman Excel Programming 2 September 27th 03 04:23 PM


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