Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Inesert value of column B of the current row into active cell

Hi,
I'm trying to write a script that will insert the value of column B of the
current row into the active cell.
I've tried playing with ActiveCell and Offset and I'm getting nowhere.

Has anyone any suggestions please

TIA

Philip



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Inesert value of column B of the current row into active cell

Hi PPL

You can use this

ActiveCell.Value = Cells(ActiveCell.Row, "B").Value


--
Regards Ron de Bruin
http://www.rondebruin.nl


"PPL" wrote in message news:5BGOf.106499$H%4.59336@pd7tw2no...
Hi,
I'm trying to write a script that will insert the value of column B of the current row into the active cell.
I've tried playing with ActiveCell and Offset and I'm getting nowhere.

Has anyone any suggestions please

TIA

Philip





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inesert value of column B of the current row into active cell

ActiveCell.Value = Cells(ActiveCell.Row,"B").Value

--
Regards,
Tom Ogilvy

"PPL" wrote in message
news:5BGOf.106499$H%4.59336@pd7tw2no...
Hi,
I'm trying to write a script that will insert the value of column B of the
current row into the active cell.
I've tried playing with ActiveCell and Offset and I'm getting nowhere.

Has anyone any suggestions please

TIA

Philip





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Inesert value of column B of the current row into active cell

Thankyou both Ron and Tom. For your excellent suggestions
I am absolutely blown away with the speed of response. It took less than 8
minutes from time of posting to receiving my first reply

Wow - what can I say.
Thank you both very much - I'm a very happy guy.

Philip

"PPL" wrote in message
news:5BGOf.106499$H%4.59336@pd7tw2no...
Hi,
I'm trying to write a script that will insert the value of column B of the
current row into the active cell.
I've tried playing with ActiveCell and Offset and I'm getting nowhere.

Has anyone any suggestions please

TIA

Philip





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 303
Default Inesert value of column B of the current row into active cell

one way

ActiveCell.Value = ActiveCell.Offset(0, -ActiveCell.Column + 2).Value

--
Greetings from New Zealand
Bill K

"PPL" wrote in message
news:5BGOf.106499$H%4.59336@pd7tw2no...
Hi,
I'm trying to write a script that will insert the value of column B of the
current row into the active cell.
I've tried playing with ActiveCell and Offset and I'm getting nowhere.

Has anyone any suggestions please

TIA

Philip





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
Run a macro in active cell only. Want to place current date/time. time clock watcher Excel Worksheet Functions 3 July 20th 09 07:46 AM
set the background color of the current cell(active cell) kang New Users to Excel 2 July 31st 07 04:48 PM
How to add todays date (static) to the current active cell using m JimmyJam75 Excel Discussion (Misc queries) 5 September 6th 06 11:23 AM
Populate current active cell - Help Please!! Larry Excel Worksheet Functions 0 July 19th 06 10:19 PM
Identify current active cell reades Excel Worksheet Functions 6 January 10th 06 12:48 PM


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