Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write to the neighbo(u)ring cell 1

Status
Not open for further replies.

eti3nne

MIS
Feb 5, 2004
102
I have written some data into say Cell AA12 now I want to write to AB12. How do I code this move to the next column? (I write to the first cell correctly becuase I have previously stored its location (ActiveCell) whilst I fetch the result from a sheet elsewhere; the second write will also get its value from that same sheet elsewhere).

Next time I may write to say, D34 first, so I'll need to write the second value to E34 subsequently.

Any ideas?

Thanks for looking.
 



hi,
I have written some data into say Cell AA12...
HOW? Your code, please.

Generally...
Code:
YourCellObject.Offset(0,1).value = [i]someValue[/i]


Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
That'll do nicely thanks, Skip*.

Cheers,

Steve.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top