Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Les Les is offline
external usenet poster
 
Posts: 240
Default Remove the $ from a cell reference

Hi,

could anybody help with this please ?

I need the cell reference to read A25 and not $A$25

Any help much appreciated
--
Les
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Remove the $ from a cell reference

Les,

If it's only a single cell then why not just re-type as A25 or select it and
tap F4 a few times until the reference becomes relative.

Mike

"Les" wrote:

Hi,

could anybody help with this please ?

I need the cell reference to read A25 and not $A$25

Any help much appreciated
--
Les

  #3   Report Post  
Posted to microsoft.public.excel.programming
Les Les is offline
external usenet poster
 
Posts: 240
Default Remove the $ from a cell reference

Hello Mike, as i using code for this and i need to have the "$" removed.
--
Les


"Mike H" wrote:

Les,

If it's only a single cell then why not just re-type as A25 or select it and
tap F4 a few times until the reference becomes relative.

Mike

"Les" wrote:

Hi,

could anybody help with this please ?

I need the cell reference to read A25 and not $A$25

Any help much appreciated
--
Les

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Remove the $ from a cell reference

Hi,

Right click your sheet tab, view code and paste this in. Select the formula
to convert and run the code.

Sub sonic()
Dim c As Range
For Each c In Selection
If c.HasFormula Then
c.Formula = Application.ConvertFormula _
(c.Formula, xlA1, xlA1, xlRelative)
End If
Next
End Sub

Mike

"Les" wrote:

Hello Mike, as i using code for this and i need to have the "$" removed.
--
Les


"Mike H" wrote:

Les,

If it's only a single cell then why not just re-type as A25 or select it and
tap F4 a few times until the reference becomes relative.

Mike

"Les" wrote:

Hi,

could anybody help with this please ?

I need the cell reference to read A25 and not $A$25

Any help much appreciated
--
Les

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Remove the $ from a cell reference

les, try one of these and see if it's what you want.

Sub test()
MsgBox ActiveCell.Address
MsgBox ActiveCell.Address(0, 0)
MsgBox ActiveCell.Address(0)
MsgBox ActiveCell.Address(, 0)
End Sub

--


Gary


"Les" wrote in message
...
Hi,

could anybody help with this please ?

I need the cell reference to read A25 and not $A$25

Any help much appreciated
--
Les





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Remove the $ from a cell reference

This should do the trick:

Dim CellVariabel As String
CellVariabel = "$A$25" ' Or what ever

CellVariabel = Replace(CellVariabel,"$","")

Hope you get the idea :-)


"Les" skrev i en meddelelse
...
Hi,

could anybody help with this please ?

I need the cell reference to read A25 and not $A$25

Any help much appreciated
--
Les



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 remove the cell reference in a sheet at once The Greek Excel Discussion (Misc queries) 5 April 3rd 23 01:12 PM
Remove XLA as a reference in VBA Parmigiano Excel Programming 1 February 26th 07 01:59 PM
How do I remove a reference from a cell? stayathome working girl Excel Discussion (Misc queries) 1 April 18th 06 08:52 PM
How can I remove cell reference when calculating outside of the pi Doit Excel Worksheet Functions 0 October 3rd 05 05:31 PM
Remove a Reference scott Excel Programming 1 February 1st 05 12:01 AM


All times are GMT +1. The time now is 10:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"