Hi guys,
I need some help, I need to create a Macro for work to hide all rows where there is content in Column C. Can you help me?
Regards,
ExcelMikeMcC
Hi guys,
I need some help, I need to create a Macro for work to hide all rows where there is content in Column C. Can you help me?
Regards,
ExcelMikeMcC
Last edited by ExcelMikeMcC; 03-13-2015 at 08:53 AM.
Hi Mike,
In the below code change the sheet name as per your requirement.
regards,![]()
Please Login or Register to view this content.
lokicl
Remember To Do the Following....
1. Use code tags. Placeafter the last line of code.![]()
Please Login or Register to view this content.
2. Thank those who have helped you by clicking the Star * below the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Hi,
Welcome to the forum.
You thread title and the description don't complement each other.
Please be specific in the description about what exactly the col. C contains.
Regards
sktneer
Treat people the way you want to be treated. Talk to people the way you want to be talked to.
Respect is earned NOT given.
Hi Guys,
I'm still stuck and new to this scripting on Excel. Could you give me a step by step way of how to enter the required script for hiding rows where column c has any value or text for excel 2013.
Try this.......
![]()
Please Login or Register to view this content.
How to install your new code
- Copy the Excel VBA code
- Select the workbook in which you want to store the Excel VBA code
- Press Alt+F11 to open the Visual Basic Editor
- Choose Insert > Module
- Edit > Paste the macro into the module that appeared
- Close the VBEditor
- Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
To run the Excel VBA code:
- Press Alt-F8 to open the macro list
- Select a macro in the list
- Click the Run button
Thanks for the feedback.
If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
SKtneer,
Thank you for the great advice, it works really well, the final issue I have is combining it with another Macro I have recorded to format the data in a way that it can be easily read and analysed. I have no issue creating the "formatting macro", I use the record macro function. I do have an use with combining it with the "hide rows" macro so that all of the formatting can be carried out over one keystroke shortcut.
ExcelMikeMcC
Hi,
Please upload the workbook that contains your macro and the macro given in #5 and in a narrative form describe what the formatting should achieve and what rules drive the formatting.
In practice you probably don't need a macro to format stuff since the standard conditional formatting functionality is often sufficient, but no doubt your formatting explanation will determine this.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks