Hi guys,
Hope you can help me with this.
What i wanted to do is add data to a specific cell, i.e. I want to start inputting data to cell A5 until the last row.
Help me modify this code.
Please Login or Register to view this content.
Hi guys,
Hope you can help me with this.
What i wanted to do is add data to a specific cell, i.e. I want to start inputting data to cell A5 until the last row.
Help me modify this code.
Please Login or Register to view this content.
Last edited by asilocyra; 08-18-2017 at 01:18 AM.
Hi asilocyra,
It sounds like you want to enter things into a cell and when you press enter the cursor goes to the next cell on the right instead of down. There is a setting in File -> Options -> Advanced -> Edit Options where you can change the direction of the cursor after pressing enter. If this isn't what you want, then keep asking. No VBA needed for this setting.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Hi MarvinP,
I've uploaded my workbook, please take a look to see what I mean.
Thank you.
Last edited by AliGW; 08-18-2017 at 01:55 AM. Reason: Unnecessary quotation removed.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Sorry about that.
From my attached file, after the row count with filled color it puts the Total Count in cell E to last row.
But what I wanted to happen is put the RowCount in Cell A5 until the last row. Does this explains it?
Sorry, I'm not good in explaining.
Last edited by AliGW; 08-18-2017 at 01:54 AM. Reason: Unnecessary quotation removed.
It needs to be
instead ofPlease Login or Register to view this content.
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
Tried that but it has an error.
Run time error 1004
Application defined or object defined error
Last edited by AliGW; 08-18-2017 at 01:53 AM. Reason: Unnecessary quotation removed.
Test your own example file.
Hi asilocyra,
Color isn't data. If you want to count the number of cells that are colored in each column, you need to have some number or letter in those cells that ARE data that excel can count.
I think I've found a VBA answer for you at:
https://www.ablebits.com/office-addi...y-color-excel/
See if that is the code you are looking for.
Like this then.
Please Login or Register to view this content.
Wow! Thank you! This saved me!
Added rep already.
Last edited by AliGW; 08-18-2017 at 01:52 AM. Reason: Unnecessary quotation removed.
You're welcome and thanks for rep+.
Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!
For normal conversational replies, try using the QUICK REPLY box below.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
double-posted by me
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks