![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 34
|
In Excel how do you create a macro to similuate keystrokes. If I have a set of data 123.00- and the needs to be put in front, In Lotus I would normally write a macro like this: edit,bs,home,-,enter but in Excel it changes the numbers as you go down the list? I tried changing from absolute but it still copied the numbers from the previous cells?
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
=IF(RIGHT(A1,1)="-",LEFT(A1,LEN(A1)-1)*-1,A1) You can then copy the new values and Paste|Special|Values over-writing your old values. Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|