By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,805 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,805 IT Pros & Developers. It's quick & easy.

I need a Excel macro to delete zeros in selected cells.

P: 5
Hello!

I need your help to design an Excel macro to delete zeros only in selected cells.

Thank you very much.
Jan 30 '08 #1
Share this Question
Share on Google+
2 Replies


kadghar
Expert 100+
P: 1,295
Hello!

I need your help to design an Excel macro to delete zeros only in selected cells.

Thank you very much.
Hi, Something like this will do:

Expand|Select|Wrap|Line Numbers
  1. Selection.Replace What:="0", Replacement:=""
If they're percentages, you should write What:="0.0%"

HTH
Jan 30 '08 #2

P: 5
I am very grateful with you for your help!

I already try it and the macro is functioning as I needed.

You got it! I am very happy!

I wish you a very good day!

Thank you again!
Jan 30 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.