Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How to showing a Col,Row in a variable

How do you store the col letter and the row number into a variable

Thanks,
GJ

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to showing a Col,Row in a variable

var = activecell.Address(0,0)

rw = ActiveCell.Row
col =
Left(ActiveCell.Address(0,0),Instr(2,ActiveCell.Ad dress,"$",vbTextcompare)-2)

Demo'd from the immediate window
Range("B9").Select
?
Left(ActiveCell.Address(0,0),Instr(2,ActiveCell.Ad dress,"$",vbTextcompare)-2)
B
Range("IV10").Select
?
Left(ActiveCell.Address(0,0),Instr(2,ActiveCell.Ad dress,"$",vbTextcompare)-2)
IV

--
Regards,
Tom Ogilvy



"gj" wrote in message
ups.com...
How do you store the col letter and the row number into a variable

Thanks,
GJ



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 to fix my spreadsheet from showing formula to showing answer SimplyQuick Excel Discussion (Misc queries) 4 October 7th 08 10:00 PM
How to fix my spreadsheet from showing formula to showing answer SimplyQuick Excel Discussion (Misc queries) 0 October 7th 08 06:38 PM
Date showing incorrect. 30:00 hrs showing 06:00 AlanStotty Excel Discussion (Misc queries) 4 August 9th 07 01:44 PM
Showing Forms using a public variable Adamaths Excel Programming 4 February 15th 06 05:02 PM
Showing/ not showing "getting started" when excel starts Ask Excel Discussion (Misc queries) 1 July 20th 05 04:20 PM


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