Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Urgent Help needed with macro


I have a sheet a data with the first column containing 11 digit numbers
in each cell. I need to delete the first digit of each number in the
column. Manually, I can do the following: F2, Home key, Delete key,
Enter key. But I can not get this recorded into a macro. It will only
record the corrected number and post "that" number all the way down the
column when I run the macro. The loop works, the commands do not.
Please help. There are 27,000+ entries in this column and it will take
days to change each number manually.


--
Lane4
------------------------------------------------------------------------
Lane4's Profile: http://www.excelforum.com/member.php...o&userid=28173
View this thread: http://www.excelforum.com/showthread...hreadid=481854

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Urgent Help needed with macro

this should do it, just put this formula in a column next to it and
replicate down

=RIGHT(A1,LEN(A1)-1)


--


Gary


"Lane4" wrote in
message ...

I have a sheet a data with the first column containing 11 digit numbers
in each cell. I need to delete the first digit of each number in the
column. Manually, I can do the following: F2, Home key, Delete key,
Enter key. But I can not get this recorded into a macro. It will only
record the corrected number and post "that" number all the way down the
column when I run the macro. The loop works, the commands do not.
Please help. There are 27,000+ entries in this column and it will take
days to change each number manually.


--
Lane4
------------------------------------------------------------------------
Lane4's Profile:
http://www.excelforum.com/member.php...o&userid=28173
View this thread: http://www.excelforum.com/showthread...hreadid=481854



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Urgent Help needed with macro


Gary - you are a life saver! Thank you so very much. Hope your day i
as wonderful as you have just made mine

--
Lane
-----------------------------------------------------------------------
Lane4's Profile: http://www.excelforum.com/member.php...fo&userid=2817
View this thread: http://www.excelforum.com/showthread.php?threadid=48185

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Urgent Help needed with macro

here's a macro for you, too

Sub test()
Dim lastrow As Long
Dim cell As Range

lastrow = Cells(Rows.Count, "A").End(xlUp).Row
For Each cell In Range("A1:a" & lastrow)
cell.Formula = Right(cell, Len(cell) - 1)
Next
End Sub

--


Gary


"Lane4" wrote in
message ...

Gary - you are a life saver! Thank you so very much. Hope your day is
as wonderful as you have just made mine!


--
Lane4
------------------------------------------------------------------------
Lane4's Profile:
http://www.excelforum.com/member.php...o&userid=28173
View this thread: http://www.excelforum.com/showthread...hreadid=481854



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
Urgent Help needed Brento Excel Discussion (Misc queries) 0 February 9th 06 09:10 PM
Urgent Help needed ! sameer27p[_10_] Excel Programming 2 July 20th 04 09:06 PM
Urgent Macro help needed ! sameer27p[_6_] Excel Programming 2 July 19th 04 09:02 PM
Urgent Macro Help Needed sameer27p Excel Programming 1 July 17th 04 01:19 AM
Urgent Macro help needed kaz85 Excel Programming 11 December 19th 03 04:44 PM


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