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
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.
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)
Summary: I'm trying to reference a alue that is stored in a cell. Cell "S1" has the value "J2" stored in it. in VBA I'm using this code: cell = Sheets("Form").Range("S1") Sheets("Archive").Range(cell).Paste bu...
Summary: Hi There, I have a simple request but since my programming knowledge in VBA for excel is limited I don't really know where to start. In excel, I have a column say A1:A100 which contains data that may ...
Summary: Here's the whole script. It is used to randomize a list of participants based on column with continuous data. I have the cell defined, but I would like to get away from the ActiveCell.Offset(0...