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

I have the following formula in a cell:

=CELL("address",SheetWIP!$H$62)

which generates the following result:

[Skeleton_WIP.xls]SheetWIP!$H$62

I need to have a VBA line that keeps the current sheet active but can
activate the cell next to the referenced cell and insert a value. I
have tried the RANGE command and the OFFSET command but I haven't had
much luck.

How can I do this?

Thanks,

Ivan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How to reference a cell address in VBA

Hi
try
Activecell.offset(0,1).value = "your value"

--
Regards
Frank Kabel
Frankfurt, Germany

Ivan wrote:
I have the following formula in a cell:

=CELL("address",SheetWIP!$H$62)

which generates the following result:

[Skeleton_WIP.xls]SheetWIP!$H$62

I need to have a VBA line that keeps the current sheet active but can
activate the cell next to the referenced cell and insert a value. I
have tried the RANGE command and the OFFSET command but I haven't had
much luck.

How can I do this?

Thanks,

Ivan


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
Macro to email to address in cell reference hnyb1 Excel Discussion (Misc queries) 1 August 4th 09 10:39 PM
Get cell reference address Vadims Podans [MVP] Excel Worksheet Functions 2 April 10th 09 08:50 PM
Cell address without absolute reference jayray Excel Worksheet Functions 1 April 24th 08 12:42 PM
How do I get the cell address of a VLOOKUP reference? tfleischny Excel Worksheet Functions 4 January 4th 06 11:16 PM
how to make cell address reference increment? jacko Excel Worksheet Functions 3 June 1st 05 05:33 PM


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