Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to edit cells


I’m trying to add a number and a hyphen (i.e., 123-) to the values i
all cells in a column. Under the old Lotus 123 DOS days, my macro cod
would read something like:

{edit}{home}123-{down}~

However, now with Excel, and VBA, I’m having a real problem do this.
Any ideas?

Thanks,
SK

--
esskayka
-----------------------------------------------------------------------
esskaykay's Profile: http://www.excelforum.com/member.php...nfo&userid=871
View this thread: http://www.excelforum.com/showthread.php?threadid=57011

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Macro to edit cells

SKK -

Consider using a formula instead....

ColA ColB
---------- -------------
1 ABC =A1&"-123" <<< if it goes on back end
2 XYZ ="123-"&A2 <<< if it goes on front end
3
4

Then just copy / paste values (Edit | Copy, Edit | Paste Special | Values).
I think that will be much faster for you. Hope that is what you need.
--
Thx
MSweetG222



"esskaykay" wrote:


Im trying to add a number and a hyphen (i.e., 123-) to the values in
all cells in a column. Under the old Lotus 123 DOS days, my macro code
would read something like:

{edit}{home}123-{down}~

However, now with Excel, and VBA, Im having a real problem do this.
Any ideas?

Thanks,
SKK


--
esskaykay
------------------------------------------------------------------------
esskaykay's Profile: http://www.excelforum.com/member.php...fo&userid=8715
View this thread: http://www.excelforum.com/showthread...hreadid=570117


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
Record Macro and Edit Macro options disabled Huzza New Users to Excel 1 March 18th 09 03:55 PM
how to edit cells Ralf Dieckmann New Users to Excel 2 April 14th 08 10:58 PM
How to use macro to edit data in Excel cells Annamalai Excel Discussion (Misc queries) 11 September 21st 06 07:44 AM
Macro to edit cells Dean[_8_] Excel Programming 3 July 21st 06 07:18 AM
How do Macro to EDIT cells? George[_23_] Excel Programming 1 September 27th 04 02:35 PM


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