Computing.Net > Forums > Programming > VBA (Excel) Editing Cells

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VBA (Excel) Editing Cells

Reply to Message Icon

Name: supermacxx
Date: December 4, 2002 at 09:42:20 Pacific
OS: Windows 2000
CPU/Ram: 512 Ram
Comment:

I have created a macro in excel. I edit (F2), delete some unwanted text, and press enter.

What happens is the entire contents of the first (original) cell is "copied" to any other cell in which I execute the macro.

QUESTION: How can I simply delete some unwanted text in every cell (the contents are uniformed) and NOT have the contents of the original cell copied into each of the other cells on which I run the macro?

Please note that I am a VBA Newbie. I have searched through "Help" and cannot find or figure this out.

You help is much appreciated.

Regards,

Kevin.



Sponsored Link
Ads by Google

Response Number 1
Name: A Certain TH
Date: December 5, 2002 at 07:43:21 Pacific
Reply:

It sounds like you've "recorded" a macro?

When you do this, if you enter some text into a cell, then the macro records the text that you ended up entering. It does not work out how you adjusted it. Thus if you rerun the macro, it will enter the same text that you originally entered.

If you record yourself doing a find/replace then that may solve it. Otherwise, you're going to need to spell out the problem a bit more specifically, and I (or someone) will give you a piece of code to do exactly what you want. (ie Is it always the same text you want to remove)

Hope thats of help

Tom


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VBA (Excel) Editing Cells

VBA/Excel Dynamic cell reference www.computing.net/answers/programming/vbaexcel-dynamic-cell-reference/15585.html

VBA Excel www.computing.net/answers/programming/vba-excel/17298.html

VBA Referencing a cell for a do until loop www.computing.net/answers/programming/vba-referencing-a-cell-for-a-do-until-loop/19866.html