Microsoft Office

Microsoft Office Questions? Ask a IT Expert for Support ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Microsoft Office
This answer was rated:

Not sure if my question should be asked here under VBA or Excel.

I'm trying to create a...
Not sure if my question should be asked here under VBA or Excel. I'm trying to create a simple macro to look at a row of data, if there is a match in a cell to hide that specific column and then move on to the next cell in that same row. The macro would be executed from another sheet in the workbook. thanks.
Show More
Show Less
Ask Your Own Microsoft Office Question
Answered in 44 minutes by:
10/20/2013
Richard
Richard, Software Specialist
Category: Microsoft Office
Satisfied Customers: 41,042
Experience: Over 15 year experience resolving Microsoft Office Issues
Verified
Thank you for your question, my name is Richard.

you have made the question to the right place.

I can write the macro for you, but I need to see the Excel File.

Can you upload it to me using the following instructions.

- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"

Also tell me the row to check and which value should be matched.

Thank you
Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


Hi Richard, sorry I can't send the original, but I made a sample spreadsheet for you. Note the original spreadsheet has many more columns of data.


 


There might be a better way to do this, but the first row in the DATA sheet is the row that will need to be checked for the word AIR or VENDOR, if there is a match then hide that column. The Main sheet Is were the macro start buttons are. I also need this to work from Excel 2010.


 


The file id is 447058.


 


Thanks.

Customer reply replied 4 years ago


Oh I forgot to mention that row one will be hidden from view in the normal state prior to any macros being run, thanks

This is now done for you Rubin

The File ID is 262322

If you have any problems, or would like any additional information or assistance, please do not hesitate to let me know.

And if you can take a second to rate my service, that would be greatly appreciated.

Thank you
Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


Richard, I think we must have miscommunicated, I need the columns to be hidden versus the rows, thanks.

No problem, I corrected this for you.

You can download it with File ID 651948

Let me know if you have any difficulties please

Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


Richard, there is still something wrong, the unhide macro seems to be working, but the hide air and hide vendor is only partially working; only some of the columns that have these key words (AIR an Vendor) are being hidden, thanks.

Ruben

It hides the columns that the value is in.

You want all columns from A to J hidden? Then there is nothing displayed anymore on the worksheet.

Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


Richard, here is a summary of how it should work.


 


If I select the HIDE AIR macro it should hide all columns that have the word AIR in row 1. (Column C,G and I)


 


IF I select the HIDE VENDOR macro I should hide all columns that have the word VENDOR in row 1 (columns A,B,D,E,F,H, and J).


 


Anything you can do to shorten the code would help since the real spreadsheet has about 100 columns.


 


Hope that helps.

ok, so Row 1 is also being checked.

I have added this and you can download it here

286528

I cannot shorten the code, it is all needed.

Let me know if you have any difficulties please

Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


Richard only row 1 needs to be checked for the key words (AIR or Vendor depending on the macro), maybe this will shorten the code?

ok, it only shortens it by a couple of lines

You can download it with ID 104806

but the amount of code should not matter, it has no bearing on performance, considering the size of the Macro.

Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago


It works! Yeah! Last question before I give you an excellent rating, how many macro are being used? I see four in total ( macro2, HideAIR, HideVendor, UnhideAll), but I see code in all of them for that appears to be related to each. Thanks

Sorry, Macro2 was my development area, you dont need that one.

Just HideAIR, HideVendor and UnhideALL

These are the 3 that you need Ruben.

If you need anything else, please do not hesitate to let me know

Thank you
Richard
Richard, Software Specialist
Category: Microsoft Office
Satisfied Customers: 41,042
Experience: Over 15 year experience resolving Microsoft Office Issues
Verified
Richard and 87 other Microsoft Office Specialists are ready to help you
Ask your own question now
Ask Richard Your Own Question
Richard
Richard
Richard, Software Specialist
Category: Microsoft Office
Satisfied Customers: 41,042
41,042 Satisfied Customers
Experience: Over 15 year experience resolving Microsoft Office Issues

Richard is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

jstinehelfer

jstinehelfer

Information Systems Manager

36 satisfied customers

A+ Comptia Certified computer repair

JasonJames122

JasonJames122

Computer Enthusiast

0 satisfied customers

I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business

Jess M.

Jess M.

Computer Support Specialist

701 satisfied customers

Computer Software Specialist for more than 10 years

The-PC-Guy

The-PC-Guy

Computer Manager

588 satisfied customers

20 years experience providing remote computer support

James K.

James K.

Consultant

260 satisfied customers

Technical Director of IT Company

IT Miro

IT Miro

Computer Scientist

157 satisfied customers

Bachelor's Degree in Information Technology, Microsoft Certified Professional

Chris L.

Chris L.

Support Specialist

147 satisfied customers

Certified Expert with over 10 years experience.

< Previous | Next >

Related Microsoft Office Questions
I just recently I cannot send and receive the emails. When I
Hi I just recently I cannot send and receive the emails. When I click the button(send and receive)of tool bar, The message of "operation failure" comes up. Also, most buttons of tool bar doesn't work.… read more
Cody
Cody
Computer Science
1,708 satisfied customers
Running Outlook 2016 on Windows 7 machine. I disabled junk
Running Outlook 2016 on Windows 7 machine. I disabled junk in the program and the registry and it is still placing critical emails in the junk folder. How do I disable?… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
My MS 2016 stopped working. Win 10. No I haven't used it in
My MS 2016 stopped working JA: What application are you using? Customer: win 10 JA: Have you installed any updates recently? Customer: no I haven't used it in a while JA: Anything else you want the Mi… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
I have lost all my sheets below, on my Excel file - why? I
I have lost all my sheets below, on my Excel file - why? I have Excel 2007 … read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
Cannot get the security updates to go on Windows 10. No. is
Cannot get the security updates to go on Windows 10. No. is Oxc1900208 … read more
Cody
Cody
Computer Science
1,708 satisfied customers
If I want Office 365, can I buy it or do I have to Lease it?
If I want Office 365, can I buy it or do I have to Lease it ? … read more
RussellA
RussellA
Solutions Architect
Bachelor\u0027s Degree
123 satisfied customers
I bought it, but did not install. It would not install 365.
I bought it, but did not install JA: What application are you using? Customer: it would not install 365 JA: Have you installed any updates recently? Customer: no JA: Anything else you want the Microso… read more
Jason Jones
Jason Jones
AAS Information Technology
6,320 satisfied customers
Just updated the Office 16 automatically and neither of my
Just updated the Office 16 automatically and neither of my printers will print Word files. Will print when using old Office 11 program. What can I do? … read more
RussellA
RussellA
Solutions Architect
Bachelor\u0027s Degree
123 satisfied customers
Microsoft Outlook error messages: 0x8004210A. & 0x800Ccc92 I
Microsoft Outlook error messages: 0x8004210A. & 0x800Ccc92 I changed my Gmail password, causing these errors apparently. Today is my last day of membership.… read more
Kris R
Kris R
IT Manager
Computing
2,652 satisfied customers
Windows 10 is trying to update but stalls first at 75% and
windows 10 is trying to update but stalls first at 75% and then at 82%. It completely hangs up the system and we need to reboot three times to allow for a previous windows package to resume operation.… read more
D.Sandlin
D.Sandlin
Support Technician
6,708 satisfied customers
I've been working on a excel spreadsheet. I have 0ffice 365.
I've been working on a excel spreadsheet . I have 0ffice 365 . I've been working on the spread sheet for three days . I have this on a laptop . I was on my iPad deleting some excel spreadsheets . My c… read more
Kris R
Kris R
IT Manager
Computing
2,652 satisfied customers
I am on a computer away from my home computer in the desk of
Hi. I am on a computer away from my home computer in the desk of which is my microsoft license number. Can you help me? What information do you need? … read more
technicalcat
technicalcat
Computer Science
838 satisfied customers
When I export an edited file from Word to gmail all of the
When I export an edited file from Word to gmail all of the text edits show up on the sent message. I have tired setting review and the trust center controls but can not get the default to be - do no d… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
M. -Burnett and I have had Microsoft as as I have had my
Hi, my name is***** and I have had Microsoft as long as I have had my computer. The problem is that my internet service, cell service, etc. was with Verizon and when they came in to set everything up,… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
Something went wrong problem. Followed instructions to
Something went wrong problem. Followed instructions to uninstall Microsoft office. That was completed. Then lost contact at the point where instructions were given on how to reinstall office. Can you … read more
Jason Jones
Jason Jones
AAS Information Technology
6,320 satisfied customers
I renewed my subscription and it was confirmed on November
I renewed my subscription and it was confirmed on November 13, 2017 that I had; received an email from Nov 13th from Microsoft Office 365 specifying confirmation. Then on Nov 29 I received an email st… read more
Kris R
Kris R
IT Manager
Computing
2,652 satisfied customers
I keep getting a message that Word 10 is confederate. I have
I keep getting a message that Word 10 is confederate. I have the software and tried to enter the product key, but it says it is not right. We purchased this from cummunity college and We never had a p… read more
Viet - Computer Tech
Viet - Computer Tech
Computer Technican
Bachelor\u0027s Degree
953 satisfied customers
I have a new HP desktop w/ Windows 10 but Open Office 4.1.5.
I have a new HP desktop w/ Windows 10 but Open Office 4.1.5. will load - is there a way I can use Open Office 4.1.5 Calc? I don't want to use Excel - I only want to have a spreadsheet in Calc - hope y… read more
Jason Jones
Jason Jones
AAS Information Technology
6,320 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x