RE: $$Excel-Macros$$ Re: dbf conversions
Excel 2007+ can import DBF files, but not save to them. Excel 2003 and prior allow saving as Dbase (DBF) files. A few alternsatives for saving/exporting to DBase DBF files: .Excel 2003 and prior versions .LibreOffice https://www.libreoffice.org (open source office suite) supports both Excel files and Dbase DBF file opening/saving. .Microsoft Access supports importing Excel sheets and exporting or linking to DBF files. There are various conversion utilities for sale, and some for free. Here are links to a few that appear to be available for free: .http://www.alexnolan.net/software/dbf.htm - freeware .http://sourceforge.net/projects/dbfconverter - open source .http://sourceforge.net/projects/dbmt - open source .http://www.vlsoftware.net/exportizer/index.html - no-cost version? Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Prince Sent: Monday, January 07, 2013 11:01 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: dbf conversions i dont feel it is actually happen. Regards Prince On Tuesday, January 8, 2013 10:52:09 AM UTC+5:30, mothi wrote: dear any one how to convert to excel 2007 to dbf files. Thanks with -- J.Mothilal : Universal Computer Systems : # 16, Brindavan Complex :Otteri, Vellore-2 -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en.
RE: $$Excel-Macros$$ How to creat circle on cells
Hi Pankaj, If you want circles around the cells with values less than 30, there are two methods that come to mind. (1)Use a data validation rule that specifies that values = 30 are the only valid values (you can disable all warnings in the data validation rule so it will allow entry of values less than 30 without warning). Then, select the option Data Validation - Circle Invalid Data. The circles do not update automatically, so you need to select that option each time you want to check for values 30. To clear the circles, use Data ValidationClear Validation Circles. (2) Use VBA either in conjunction with option (1) above to update the validation circles anytie data changes, or else use VBA to draw circles on the worksheet as appropriate using drawing object (complex and I hesitate to reccomend it). If you are willing to consider indicators OTHER than circles, you have possibly even better options: (1)Use Conditional formatting to highlight the cells with values 30. (2) In Excel 2007+ you have some sophisticated conditional formatting options that may be of interest. For example a. The rule type Format all cells based on their values allows you to have Excel draw in-cell data bars, use 2 or 3-color scales for values in different ranges, or use a set of in-cell colored icons. b. You could for example have a red down arrow appear in all cells whose value is less than 30 using this rule type. You can find instructions on using conditional formatting with icons at the following link: http://msdn.microsoft.com/en-us/library/office/bb407306%28v=office.11%29.asp x If you need a more detailed walk-though, or you're sure none of the listed options suffice, let me know and I'll see what I can come up with. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Secret Shot Sent: Monday, December 17, 2012 11:12 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ How to creat circle on cells Dear Group, Kindly help me, i want to create Circles around the cells. means if i have some Numbers in any excel sheet and i want circle to be created on cell who have numbers less then 30. please help me. -- Pankaj Pandey Bhopal -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en.
RE: $$Excel-Macros$$ Re: Dynamic calendar quiz : There is a prize for the winner.
Very nice calendars. I like how Deba Ranjan's has a month offset feature (Seems to be a hidden feature) by changing the value in G4, for a calendar that begins on any month of the year. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Paul Schreiner Sent: Friday, December 14, 2012 6:50 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: Dynamic calendar quiz : There is a prize for the winner. I asked Ayush how best to make these available. I know he's been busy, so hasn't been able to respond. Some Google Groups do not allow file attachments and have a Files section for sharing files. But this group ALLOWS attachments, and doesn't have a Files section. But I'm hesitant to email out a 1Mb zip file to all members! (This could cause problems with some email applications) For now, here are the calendars provided by the winners. Once I hear from Ayush regarding his recommended method for sharing the others, I'll do so. Once again, Congratulations! Paul -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en.
RE: $$Excel-Macros$$ How to make Outline work in Protection
Hi Zeeshan, You can enable outlining on protected sheets by use of some simple VBA code. There is a protection option available only via VBA called UserInterfaceOnly. It's purpose is to allow other VBA code to maipulate protected sheets freely, but have the sheets otherwise stay fully protected for user actions. (It does not work 100% in all situations even for that advertised purpose, by the way). If we enable UserInterfaceOnly protection for the file, and then toggle the VBA SHEET.EnableOutlining property to True, the sheet will be protected with outlining enabled. The UserInterfaceOnly protection option is not saved with the file, though, so we have to take these steps every time the file is opened. To do so, you can use the foloowing code in the ThisWorkbook module: Private Sub Workbook_Open() With Me.Worksheets(your_sheet_name) .Protect Password:=your_password, UserInterfaceOnly:=True .EnableOutlining = True End With End Sub If you don't have/want a password, change the .Protect line to: .Protect UserInterfaceOnly:=True You can find some more details at http://www.ozgrid.com/Excel/outlining-protected.htm. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Zeeshan Sent: Tuesday, December 04, 2012 9:03 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ How to make Outline work in Protection Dear Mates, I have been following this group for almost 3 years, and had been silent spectator, picking up tips which has really helped me, but today i have to post this query which i have been trying hard but could not find a solution. Pl find attached file, this is grouped from Dates to Week and if i protect the sheet then Outline does not work. Waiting for Suggestions regards, Zeeshan -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en.
RE: Fwd: $$Excel-Macros$$ Paul Schreiner - Most Helpful Member November'12
Congratulations Paul! I really appreciate your generosity, expertise, and communication skills. I'm happy to see you honored for your contributions. You have an EXCELLENT point about the challenges so many here rise above beyond just the technical. I have great respect for the group as a whole, too! Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Paul Schreiner Sent: Tuesday, December 04, 2012 5:26 AM To: excel-macros@googlegroups.com Subject: Re: Fwd: $$Excel-Macros$$ Paul Schreiner - Most Helpful Member November'12 Even though this forum provides a TREMEDOUS service and makes getting assistance convenient. I've many times expressed that the use of the written word actually makes providing this type of help more DIFFICULT! When asking for help, we tend to forget that what WE see on the screen isn't seen by others, so we forget to mention it. We also assume that terms that we use every day are known by everyone. The people I truly admire are the ones that participate in which English is not their first language. (which means anyone that understands my humor is TRULY AMAZING! :-D ) So, not only do we struggle with the technical aspects of our tasks, and the various levels of understanding, but we have language differences to overcome. AND WE DO IT ALL SO WELL !!! I feel truly honored to be counted as a member of this wonderful group of people! Thank you all for your kind words! Paul - Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can. - John Wesley - -- Original message -- From: Ayush Jain jainayus...@gmail.com Date: Mon, Dec 3, 2012 at 11:58 PM Subject: $$Excel-Macros$$ Paul Schreiner - Most Helpful Member November'12 To: excel-macros excel-macros@googlegroups.com Dear members, Paul Schreiner has been selected as 'Most Helpful Member' for the month of Nov'12. He has posted 52 posts last month and helped forum members through his excel expertise. I truly appreciate his technical knowledge, consistency and commitment to the group. Paul has been associated with the forum from last 4 years and is providing free consulting and outstanding solutions to the forum members. I personally like the way he guide people on their problems. He just not provide the solution but educate the person on how to improvise and make the solution better for long term. He has his own style of writing and great sense of humor. I love to read his replies when I get the time. His reply itself provide the different aspects of same problem. Paul, please find enclosed the award certificate in honor of your contribution. Congratulations and thanks for your contribution. We are honored to have you in this forum. Thanks to Ashish, Prince, Noorain, Pravin, Anil and all other members for helping excel enthusiasts voluntarily !! Keep posting. Regards, Ayush Jain Group Manager P.S. If you have any feedback, please share your thoughts by filling the survey form https://docs.google.com/spreadsheet/viewform?fromEmail=trueformkey=dHpYdmt TeWZBcEhDWDhmandNWDlpYXc6MQ . -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and
RE: $$Excel-Macros$$ How to make Outline work in Protection
Hi Zeeshan, I have used this method myself--it's always worked for me. Have you tried it this time? If you have trouble, just repost your file and I will look at it to see what the problem is. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ZeeSHAN Sent: Wednesday, December 05, 2012 11:12 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ How to make Outline work in Protection Hi Rossoff, Thx for the tip, i have tried this before but it did not worked. not to disappoint you, however the purpose of protection is to hide Formula's. regards, Zeeshan On Thu, Dec 6, 2012 at 9:33 AM, Asa Rossoff a...@lovetour.info wrote: Hi Zeeshan, You can enable outlining on protected sheets by use of some simple VBA code. There is a protection option available only via VBA called UserInterfaceOnly. It's purpose is to allow other VBA code to maipulate protected sheets freely, but have the sheets otherwise stay fully protected for user actions. (It does not work 100% in all situations even for that advertised purpose, by the way). If we enable UserInterfaceOnly protection for the file, and then toggle the VBA SHEET.EnableOutlining property to True, the sheet will be protected with outlining enabled. The UserInterfaceOnly protection option is not saved with the file, though, so we have to take these steps every time the file is opened. To do so, you can use the foloowing code in the ThisWorkbook module: Private Sub Workbook_Open() With Me.Worksheets(your_sheet_name) .Protect Password:=your_password, UserInterfaceOnly:=True .EnableOutlining = True End With End Sub If you don't have/want a password, change the .Protect line to: .Protect UserInterfaceOnly:=True You can find some more details at http://www.ozgrid.com/Excel/outlining-protected.htm. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Zeeshan Sent: Tuesday, December 04, 2012 9:03 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ How to make Outline work in Protection Dear Mates, I have been following this group for almost 3 years, and had been silent spectator, picking up tips which has really helped me, but today i have to post this query which i have been trying hard but could not find a solution. Pl find attached file, this is grouped from Dates to Week and if i protect the sheet then Outline does not work. Waiting for Suggestions regards, Zeeshan -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick
RE: $$Excel-Macros$$ Scraping data from image
Hi Hanumant Shinde, Yes, as others have mentioned, you can use OCR (Optical Character Recognition) software. In fact, Microsoft Office comes with OCR capability built-in. Another alteernative is Adobe Acrobat, if you have that. Most scanners and printer/scanners also come with OCR software. There is other OCR software available such as ABBYY Fine Reader and OmniPage, as well. There are also a number of free or open source OCR software progams, many based on the open-source Tesseract OCR engine, which is supposed to be very good. A list of many of some those programs can be found on the Tesseract web site: https://code.google.com/p/tesseract-ocr/wiki/3rdParty#GUI. Microsoft Office versions XP (2002) through Office 2007 include a tool called Microsoft Office Document Imaging. It is a scan utility and an OCR utility, and can be used to do OCR analysis of image files. It may not be installed by default, but it is an option. It can also be downloaded from Microsoft and installed for Office 2010 (and maybe latest versions). See http://support.microsoft.com/kb/982760. Some Microsoft Office editions 2007 and up include OneNote, a note-taking application. It supports very high-quality OCR including hand writing recognition. It can be used to perform OCR on an image and then you can copy and paste the text back to Word or elsewhere. OneNote is an excellent alternative to MS Document Imaging for simple OCR workflows. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of hanumant shinde Sent: Thursday, November 29, 2012 12:46 PM To: Excel Group Subject: $$Excel-Macros$$ Scraping data from image Hi, Is it possible to capture (scrape) data from .doc file but the data on this .doc file is pasted as image. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en.
RE: $$Excel-Macros$$ Scraping data from image
P.S., Hanumant, here is a link with detailed instructions for using OneNote for OCR: http://www.howtogeek.com/howto/14595/ocr-anything-with-onenote-2007-and-2010 / Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Friday, November 30, 2012 7:33 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Scraping data from image Hi Hanumant Shinde, Yes, as others have mentioned, you can use OCR (Optical Character Recognition) software. In fact, Microsoft Office comes with OCR capability built-in. Another alteernative is Adobe Acrobat, if you have that. Most scanners and printer/scanners also come with OCR software. There is other OCR software available such as ABBYY Fine Reader and OmniPage, as well. There are also a number of free or open source OCR software progams, many based on the open-source Tesseract OCR engine, which is supposed to be very good. A list of many of some those programs can be found on the Tesseract web site: https://code.google.com/p/tesseract-ocr/wiki/3rdParty#GUI. Microsoft Office versions XP (2002) through Office 2007 include a tool called Microsoft Office Document Imaging. It is a scan utility and an OCR utility, and can be used to do OCR analysis of image files. It may not be installed by default, but it is an option. It can also be downloaded from Microsoft and installed for Office 2010 (and maybe latest versions). See http://support.microsoft.com/kb/982760. Some Microsoft Office editions 2007 and up include OneNote, a note-taking application. It supports very high-quality OCR including hand writing recognition. It can be used to perform OCR on an image and then you can copy and paste the text back to Word or elsewhere. OneNote is an excellent alternative to MS Document Imaging for simple OCR workflows. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of hanumant shinde Sent: Thursday, November 29, 2012 12:46 PM To: Excel Group Subject: $$Excel-Macros$$ Scraping data from image Hi, Is it possible to capture (scrape) data from .doc file but the data on this .doc file is pasted as image. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any
RE: $$Excel-Macros$$ VBA macro quiz #1
I like the questions. Very good introductory questions on a variety of VBA topics. For question #8, I suspect the question intended could be better phrased Which of these is a datatype most specifically for storing decimal integers in a variable? (several of the datatypes listed store decimal numbers, more than one can store decimal integers precisely, but only one of those is limited to storing integers.) Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of jainayus...@gmail.com Sent: Saturday, November 10, 2012 4:14 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ VBA macro quiz #1 If you have trouble viewing or submitting this form, you can fill it out online: https://docs.google.com/spreadsheet/viewform?fromEmail=true https://docs.google.com/spreadsheet/viewform?fromEmail=trueformkey=dHRESnJ EemJNVmQ3Ym9SbnNvWnZDUEE6MQ formkey=dHRESnJEemJNVmQ3Ym9SbnNvWnZDUEE6MQ VBA macro quiz #1 This quiz is sponsored by discussexcel.com. Ayush Jain Group Manager Your name * Email Address * 1. Which of these is used at module level to force declaration of all variables mandatory ? * .( ) Option Compare .( ) Option Variable .( ) Option Explicit .( ) Option Base 2. Which of these keyword is used to declare variables ? * .( ) Declare .( ) Dim .( ) Create .( ) Make 3. Which of these datatype is used in the variable declaration to store text data ? * .( ) String .( ) Text .( ) Char .( ) Long 4. Which of these is correct declaration of macro ? * .( ) Sub Welcome[] .( ) Sub Welcome{} .( ) Sub Welcome() .( ) Sub Welcome 5. Which of these command is to display message in a dialog box ? * .( ) ShowMsg .( ) DialogBox .( ) Message .( ) Msgbox 6. Which of these is not a loop in VBA ? * .( ) Do while .( ) IF End if .( ) For Next .( ) While wend 7. Which of these command is used to take input from the user ? * .( ) Inputbox .( ) Textbox .( ) InputText .( ) InputValue 8. Which of these is a datatype used to store the decimal numbers in variable ? * .( ) Double .( ) Decimal .( ) Long .( ) Float 9. Which of these command is used to stop screen flickering ? * .( ) Application.HideScreen = True .( ) Application.EnableEvents = False .( ) Application.DisplayAlerts = False .( ) Application.Screenupdating = False 10. Which is the file extension that cannot be used for macro excel file ? * .( ) .XLSM .( ) .XLSX .( ) .XLSB .( ) .XLS [Submit] Powered by Google Docs http://docs.google.com Report Abuse https://docs.google.com/spreadsheet/reportabuse?fromEmail=trueformkey=dHRE SnJEemJNVmQ3Ym9SbnNvWnZDUEE6MQsource=https://docs.google.com/spreadsheet/vi ewform?fromEmail%3Dtrue%26formkey%3DdHRESnJEemJNVmQ3Ym9SbnNvWnZDUEE6MQ - Terms of Service http://www.google.com/accounts/TOS - Additional Terms http://www.google.com/google-d-s/terms.html -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you
RE: $$Excel-Macros$$ VBA : Class does not support automation error.
Hi Amol, I haven't use the Office Web Components, and we don't know much about your code or file, but the error is usually caused by a references/library problem, such as: .You used early binding but the reference to the OWC library was broken. .The OWC library is not installed on the problem machines (regardless of early or late binding) .The library installed is a different version. You indicate you're using OWC10 - that was released with Office 2000, I believe, and is not generally recommended for use today. I'm not sure if OWC is recommended at all now - I haven't researched it! but the last version of Office web components was OWC11 (Office Web components for Office 2003). That can be downloaded at https://www.microsoft.com/en-us/download/details.aspx?id=22276. My reccomendations: .Upgrade to OWC11 (unless there is some reason not to that I am unaware of) .Make sure OWC is installed on all machines .Use late binding to avoid any problems with references (e.g., something like: Dim MyOWCObject As OBJECT .. Set MyOWCObject = CreateObject(OWC11.SomeOWCClassname) In any case, when the error occurs Some debugging and troubleshooting steps to take: .Determine if the variable ChartSpace2 contains the desired object. Verify that it's properties are what you expect. Verify that the ExportPicture method is being recognized. If you cannot be at the workstation when it fails, use debug.print statements to print the information you need to the Immediate window. .Does OWC10 support PNG graphics? I saw a reference that only mentioned GIFs. .If you find a problem considering the above suggestions or others that come to mind, work backwards through your code to determine when the problem first occurs, and then try to determine why. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Amol Jadhav Sent: Thursday, November 08, 2012 10:38 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ VBA : Class does not support automation error. Hello Experts, I need your expert advice. I created a tool using VBA form and OWC 10.0. I am exporting chart which is on chartspace component(OWC 10.0). On some PC's tool is working fine, but on other computers I am getting an error Class does not support automation or does not support expected interface. I am using Windows 7 and office 2010 I am not able to upload file because its to heavy 19 mb. Please find attached error screenshot and highlighted line where i am getting this error. Please let know the possible reasons and solutions for the same. Regards, Amol J -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to
RE: $$Excel-Macros$$ Macro for convert to Million
Hi Aamir, How did the add-in I designed for you last time workout? Does it need a modification? Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Aamir Shahzad Sent: Thursday, October 04, 2012 10:45 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Macro for convert to Million Dear Group, I require the Macro in Add-in form which convert the full amount into the million e.g. if I want to convert the figure 1,000,000 to million it will show as 1.000. Procedure should 1,000,000 enter as 1,000,000mm it automatically convert the figure as 1.000. Regards, Aamir Shahzad -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en.
RE: $$Excel-Macros$$ Re: Help need to get multiple values by vlookup
Hi Aamir, Not sure exactly what you're after (haven't seen your workbook), but perhaps this is helpful: { =TRANSPOSE(INDEX(TRANSPOSE(ColumnsOfTableYouWantReturned),,MATCH(WhatValueTo Lookup,LookupRange,0))) } If your values to return are all numbers, you can use this instead: { =INDEX(--ColumnsOfTableYouWantReturned,MATCH(WhatValueToLookup,LookupRange,0 )) } If your values to return are all text, you can use this one instead: { =INDEX(ColumnsOfTableYouWantReturned,MATCH(WhatValueToLookup,LookupRange, 0)) } The reason for the TRANSPOSEs, -- and in each of the above solutions is to convert the lookup table to an array. Index can return an entire row or column at once from an array, but not from a range. Enter the above array formulas (between the braces) over several columns and confirm entry with ctrl-shift-enter. It will essentially return the whole matching record or as many columns of it as you specify. If LookupRange is sorted, you may want to change the ,0 near the end of the formula to 1 (for ascending order) or -1 (for descending order). The upside to that change is it will make the lookup very fast. The downside is that if there is not an exact match, it will return a neighboring record instead. The above formulas will return the same values that a series of VLOOKUPs in each column would achieve, but faster. Sincerely, Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Aamir Shahzad Sent: Wednesday, October 24, 2012 11:10 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Help need to get multiple values by vlookup I have registered thanks as well On Thu, Oct 25, 2012 at 11:06 AM, ashish damor damor.ash...@gmail.com wrote: Dear Aamir, The registration is free and it does not take even 5 minutes to register. On Thu, Oct 25, 2012 at 10:52 AM, Aamir Shahzad aamirshahza...@gmail.com wrote: Dear Rajan, If you have file plz share with us, your required link want to register first. On Thu, Oct 25, 2012 at 8:23 AM, Rajan_Verma rajanverma1...@gmail.com wrote: Hi Download the file from here http://www.excelfox.com/forum/f12/vlookup-return-multiple-values-4/ Thanks Rajan. On Wednesday, 24 October 2012 22:51:01 UTC+5:30, saravanan R wrote: Hi xlts, Please help me, on how to get the all the associated items In the range where it as more than 1 lookupvalue. Thanks, Saravanan -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . -- Regards, Aamir Shahzad -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . -- Thanking you. With regards, Ashish Damor -- Join official facebook page of
RE: $$Excel-Macros$$ Re: Request for support for a looping macro
Hi David, True. The worksheet as posted had no formulas, but it is worth trying and would likely be beneficial if the macro will be used on a sheet with formulas. The fast version of the function probably only has 4 lines of VBA that could trigger calculation(one shifts the values with a range.value2 assignment, one clears a group of cells, the third inserts a group of rows, and the fourth places text in a cell of each of the newly inserted rows), which might mean that only 4 recalculations could be triggered (though I'm not sure on that). The simpler function takes action on each record/group of cells individually in a loop, and would likely benefit greatly from disabling calculation if there are formulas. Cheers, Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of David Grugeon Sent: Saturday, October 20, 2012 5:00 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Request for support for a looping macro I wonder if it would speed it up if you set calculation to xlmanual? Regards David Grugeon On 21 October 2012 03:23, Asa Rossoff a...@lovetour.info wrote: Hi Diamond Dave, I started out planning to give you a few general thoughts just based on your email, without having seen the workbook. I typed out more than a few in the end, and then thought, if that was worth the time, it's surely worth the time to find your old message, open your attachment and actually take a look. When I took a look, I found that none of my typed examples, although I hoped would be generally educational, would get you all the way to a solution. So I worked up a working rewrite of your routine for you. I will list that first. This working version doesn't use A1 for the number of shifts to perform. It calculates the same for display purposes (status bar), but in fact it works its way down the sheet using the equivalent of Ctrl-DownArrow -- RANGE.End(xlDown) -- and processes each dataset/record that it finds and that needs shifting (it won't shift ones that have already been shifted). See attached file or download the same: Fast Shifting of disparate ranges-for Diamond (asa).xls https://docs.google.com/open?id=0Bwkcc6g0MuPTUWZFQTE1RG1mZ1k Although this macro looks much different from yours, the effect is essentially the same. cut and paste each dataset: Sub asaShiftData() Dim Worksheet As Worksheet Dim DataSet As Range, TopLeft As Range Dim Rows As Long, Counter As Long, Counter2 As Long, Total As Long Dim Status As String Set Worksheet = ThisWorkbook.Worksheets(Header) Set TopLeft = Worksheet.Range(E1).End(xlDown).End(xlDown) Application.ScreenUpdating = False Total = WorksheetFunction.CountA(Worksheet.Range(B:B)) - 1 Do While TopLeft.Value Counter2 = Counter2 + 1 If Counter2 Mod 10 = 0 Then DoEvents Set DataSet = Worksheet.Range(TopLeft, TopLeft.End(xlToRight).End(xlDown)) If TopLeft.Offset(, -1).Value = Then Counter = Counter + 1 DataSet.Cut Destination:=DataSet.Offset(, -1) Rows = DataSet.Rows.Count TopLeft.Offset(Rows).EntireRow.Insert TopLeft.Offset(Rows).Value = Variance Set TopLeft = TopLeft.Offset(, 1) End If Set TopLeft = TopLeft.End(xlDown).End(xlDown).End(xlDown) GoSub GetStatus Application.StatusBar = Status Loop Application.ScreenUpdating = True Application.StatusBar = False MsgBox Status Exit Sub GetStatus: Status = Shifted Counter of Counter2 ( Total ) production lines.Int(Counter2 / Total * 100) % complete. Return End Sub After testing the above macro with about 1,000 datasets to shift, I was concerned about the time it took: about 5.5 minutes. So I worked up a more efficient, but more complex version that did the same in 58 seconds. It has a few limitations, mentioned in comments in the code, but is suitable for most purposes: Sub asaShiftDataFast() Dim Worksheet As Worksheet Dim SourceRange As Range, InsertRange As Range, Cells As Range Dim DestinationRange As Range, DestCell1 As Range Dim SrcCol As Range, SrcCell As Range Dim TopLeft As Range, FirstColumn As Range Dim ColIdx As Long, ColLeftIdx As Long, ColRightIdx As Long Dim RowIdx As Long, RowCount As Long Dim Total As Long Dim SrcFont As Font, DestFont1 As Font Dim Abort As Boolean Set Worksheet = ThisWorkbook.Worksheets(Header) Set TopLeft = Worksheet.Range(E1).End(xlDown) Set FirstColumn = TopLeft.EntireColumn Total = WorksheetFunction.CountA(Worksheet.Range(B:B)) - 1 Application.ScreenUpdating = False 'Find rows that need shifting 'This approach is limited to 8,192 product lines ' (areas in the range) in Excel versions Excel 2010. Application.StatusBar = Identifying records
RE: $$Excel-Macros$$ VBA Code Related Question
Hi Amar, I examined your file, and it seems that ALL of the VBA objects are needed in your new workbook, even though you are only using certain chart types. Also needed is the icons sheet (which may be hidden) for everything to work properly. What MAY be an alternative is to allow it to install itself as an add-in, by uncommenting the code in the sample workbook's ThisWorkbook module that says ti will prompt for add-in installation if uncommented. In that case, you might not have to copy any VBA stuff at all after add-in installation. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: Wednesday, October 17, 2012 10:15 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ VBA Code Related Question Dear Asa Excellent Guide me,Thanks very much. I do every steps which you tell me but why all chart not change when I change value data in Data sheet,there is any mistek by me Pls tell me Regards Amar On Thu, Oct 18, 2012 at 8:30 AM, Asa Rossoff a...@lovetour.info wrote: Hi Amar, In your attached file, there is no VBA code attached to the worksheet itself, thus there is nothing to copy or move. The VBA code in your file (of which there is a lot) is in various other objects: several standard modules, perhaps 15 or 20 class modules, several userforms, and the ThisWorkbook module. Several ways to copy them: (1) copy the whole file to a new filename (2) Open both this file and the new file, hit ALT-F11 to bring up the VBA editor. Drag and drop the modules you want to your new file (they will be copied). ThisWorkbook cannot be drag and dropped, but you can highlight the code in that module, hit copy (ctrl-c), and paste in the corresponding ThisWorkbook module already in your new file. (3) Export the VBA modules and objects. Right-click each one you want, choose Export File and save it to disc. Then click on the new workbook's project. Right click and select Import File for each module and object you want to import. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: Wednesday, October 17, 2012 4:44 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ VBA Code Related Question Dear Rajan, I will try to export VBA code from this excel for line chart but it is not possible,how to do it? amar On Thu, Oct 11, 2012 at 6:18 PM, Rajan_Verma rajanverma1...@gmail.com wrote: When you move your worksheet.. your Code written in Worksheet Code window will automatically move with it Regards Rajan verma +91 7838100659 [IM-Gtalk] From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: 11 October 2012 6:14 To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ VBA Code Related Question Hi all Experts, Can anybody tell me how to export worksheet with VBA code from one sheet to another sheet.Suppose In my sheet if there are 5 tab three VBA code include.If I want to export one tab with VBA code to other new sheet it is possible? I will try but not possible. Pls suggest helpful guidance Regards Amar -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited
RE: $$Excel-Macros$$ VBA Code Related Question
Sparklines in-cell charting was added as a native feature in Excel 2010, although it is not as sophisticated as the addin you are using. I am not an expert on the add-in, in fact, it looks great, but I have never used it. For help on the proper way to use it I recommend you check the manual on the website: http://sparklines-excel.blogspot.com/ Or ask in the forum: http://www.rimlinger.eu/sparklines/ At least I think that the above pages are for the same open source add-in, Sparklines for Excel, that you shared with us. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: Thursday, October 18, 2012 12:04 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ VBA Code Related Question Dear Asa, Actually I want to sparklines also piechart,barchart in single cell in excel 2003 (I Used this version) So I will try it to export only certain chart.There are any option in excel 2003 for sparklines,piechart,barchart in single cell then I will not try to export chart from other file Regards Amar On Thu, Oct 18, 2012 at 12:23 PM, Asa Rossoff a...@lovetour.info wrote: Hi Amar, I examined your file, and it seems that ALL of the VBA objects are needed in your new workbook, even though you are only using certain chart types. Also needed is the icons sheet (which may be hidden) for everything to work properly. What MAY be an alternative is to allow it to install itself as an add-in, by uncommenting the code in the sample workbook's ThisWorkbook module that says ti will prompt for add-in installation if uncommented. In that case, you might not have to copy any VBA stuff at all after add-in installation. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: Wednesday, October 17, 2012 10:15 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ VBA Code Related Question Dear Asa Excellent Guide me,Thanks very much. I do every steps which you tell me but why all chart not change when I change value data in Data sheet,there is any mistek by me Pls tell me Regards Amar On Thu, Oct 18, 2012 at 8:30 AM, Asa Rossoff a...@lovetour.info wrote: Hi Amar, In your attached file, there is no VBA code attached to the worksheet itself, thus there is nothing to copy or move. The VBA code in your file (of which there is a lot) is in various other objects: several standard modules, perhaps 15 or 20 class modules, several userforms, and the ThisWorkbook module. Several ways to copy them: (1) copy the whole file to a new filename (2) Open both this file and the new file, hit ALT-F11 to bring up the VBA editor. Drag and drop the modules you want to your new file (they will be copied). ThisWorkbook cannot be drag and dropped, but you can highlight the code in that module, hit copy (ctrl-c), and paste in the corresponding ThisWorkbook module already in your new file. (3) Export the VBA modules and objects. Right-click each one you want, choose Export File and save it to disc. Then click on the new workbook's project. Right click and select Import File for each module and object you want to import. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: Wednesday, October 17, 2012 4:44 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ VBA Code Related Question Dear Rajan, I will try to export VBA code from this excel for line chart but it is not possible,how to do it? amar On Thu, Oct 11, 2012 at 6:18 PM, Rajan_Verma rajanverma1...@gmail.com wrote: When you move your worksheet.. your Code written in Worksheet Code window will automatically move with it Regards Rajan verma +91 7838100659 [IM-Gtalk] From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: 11 October 2012 6:14 To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ VBA Code Related Question Hi all Experts, Can anybody tell me how to export worksheet with VBA code from one sheet to another sheet.Suppose In my sheet if there are 5 tab three VBA code include.If I want to export one tab with VBA code to other new sheet it is possible? I will try but not possible. Pls suggest helpful guidance Regards Amar -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures
RE: $$Excel-Macros$$ VBA Code Related Question
Hi Amar, In your attached file, there is no VBA code attached to the worksheet itself, thus there is nothing to copy or move. The VBA code in your file (of which there is a lot) is in various other objects: several standard modules, perhaps 15 or 20 class modules, several userforms, and the ThisWorkbook module. Several ways to copy them: (1) copy the whole file to a new filename (2) Open both this file and the new file, hit ALT-F11 to bring up the VBA editor. Drag and drop the modules you want to your new file (they will be copied). ThisWorkbook cannot be drag and dropped, but you can highlight the code in that module, hit copy (ctrl-c), and paste in the corresponding ThisWorkbook module already in your new file. (3) Export the VBA modules and objects. Right-click each one you want, choose Export File and save it to disc. Then click on the new workbook's project. Right click and select Import File for each module and object you want to import. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: Wednesday, October 17, 2012 4:44 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ VBA Code Related Question Dear Rajan, I will try to export VBA code from this excel for line chart but it is not possible,how to do it? amar On Thu, Oct 11, 2012 at 6:18 PM, Rajan_Verma rajanverma1...@gmail.com wrote: When you move your worksheet.. your Code written in Worksheet Code window will automatically move with it Regards Rajan verma +91 7838100659 [IM-Gtalk] From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: 11 October 2012 6:14 To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ VBA Code Related Question Hi all Experts, Can anybody tell me how to export worksheet with VBA code from one sheet to another sheet.Suppose In my sheet if there are 5 tab three VBA code include.If I want to export one tab with VBA code to other new sheet it is possible? I will try but not possible. Pls suggest helpful guidance Regards Amar -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the
RE: $$Excel-Macros$$ How to repair corrupted Excel file
Some things you can try: 1. Try opening you file in Office Web Apps. http://skydrive.live.com/ 2. Install open-source LibreOffice and try opening your file in that. http://www.libreoffice.org/ 3. Try opening your spreadsheet using a database connection (See below) 4. Try renaming your file to a ZIP extension. The workbook is stored as various files in a ZIP archive; most with binary data, though some things in XML format. Maybe if you create a new blank workbook saved as XLSB as a template (extension then changed to ZIP) you will have luck moving essential files (parts) of your source workbook to the new file's ZIP archive. Database connection elaborated: - Try creating QueryTables to retrieve data. You can independently access each worksheet, Excel Table and named range as if it were a database table. Text may get truncated in length, and the database drivers treat each column as if they were a fixed data type-- guessing at the type based on the first several rows. You can either use the ODBC driver (an older driver) or the Microsoft Access Database Engine OLEDB provider, which is a newer driver/framework. The ODBC method uses older drivers, at least in part. It has a tool, Microsoft Query, that allows you to visually design a database query against your Excel file, but for basic data recovery offers nothing special. It has an easy-to-use wizard called the Query Wizard. The OLEDB/Microsoft Access Database Engine method is not difficult to utilize, but it is a little more technical. For this, you use the Data Connection Wizard. As an aside, the version of SQL supported via OLEDB is enhanced and more standard compared to that provided via ODBC. Steps for using the newer OLEDB/Microsoft Access Database Engine method of creating a Query Table: 1. Install Microsoft Access 2007+ or the Microsoft Access Database Engine Redistributable (https://www.microsoft.com/en-us/download/details.aspx?id=13255). 2. Go to Ribbon, Data tab. 3. Click [Get External Data]. (Remainder of instructions in shorthand but detailed.) 4. From Other Sources From Data Connection Wizard 5. DATA CONNECTION WIZARD 6. Other/Advanced 7. [NEXT] 8. DATA LINK PROPERTIES 9. Provider tab 10.Microsoft Office 12.0 Access Database Engine OLE DB Provider 11. [NEXT] 12. Connection tab appears 13. Data Source. Enter full path to file (C:\Path\To\File\Filename.xlsb) 14.[All tab] 15. Extended Properties. For XLSB file, type Excel 12.0 without quotes. (It would be Excel 12.0 Xml for XLSX, Excel 12.0 Macro for XLSM, or Excel 8.0 for XLS.) 16.[Connection tab] 17.[Test Connection] 18.if success [OK] 19.DATA CONNECTION WIZARD 20.Select a worksheet, table, or named range from the list. Worksheet names will include a $ at the end. It's possible to uncheck Connect to a specific table if you want to write an SQL query manually instead. 21. [Next] 22.if prompted to replace data connection file [YES] 23.[Finish] 24.IMPORT DATA 25.[OK] 26.Right click in the resulting query table. 27.Table Unlink from data source (or Table Convert to Range) To use ODBC/Microsoft Query: 1. Go to Ribbon, Data tab. 2. [Get External Data] 3. From Other Sources From Microsoft Query 4. CHOOSE DATA SOURCE 5. Excel Files 6. Check Use the Query Wizard to create/edit queries if necessary 7. [OK] 8. SELECT WORKBOOK 9. select your file 10.[OK] 11. QUERY WIZARD - Choose Columns 12. If your worksheets do not appear in the list of Available tables and columns. a. [OPTIONS] b. TABLE OPTIONS c. Check all options in the Show box. d. [OK] 13. Select a worksheet, table, or named range from the list. 14.[ ] column headings should appear in Columns in your query box 15. note: do not continue to select other tables for your need. 16.[Next] 17.QUERY WIZARD - Filter Data 18.[Next] 19.QUERY WIZARD - Sort Order 20.[Next] 21. QUERY WIZARD - Finish 22.What would you like to do next? prompt 23.Return Data to Microsoft Excel 24.[Finish] 25.IMPORT DATA 26.[OK] 27.Right click in the resulting query table. 28. 29.Table Unlink from data source (or Table Convert to Range) Good luck! It goes without saying, but backup valuable data frequently! - Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of B Sharma Sent: Wednesday, October 03, 2012 8:27 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ How to repair corrupted Excel file Dear Friends Excel Experts, I have a Excel 2007 file of around 5 MB (which I saved in binary format. Last week it suddenly got corrupted and I am now unable to open it , While
RE: $$Excel-Macros$$ Rajan Verma - Most Helpful Member September 2012
I'm happy to see you recognized and honored for your continued great contribution Rajan. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Ayush Jain Sent: Tuesday, October 02, 2012 8:34 AM To: excel-macros Subject: $$Excel-Macros$$ Rajan Verma - Most Helpful Member September 2012 Dear members, Rajan Verma has been selected as 'Most Helpful Member' for the month of Sep'12. He has posted 137 posts in last month and helped forum members through his excel expertise. I truly appreciate his knowledge, consistency and commitment to the group. Rajan, please find enclosed the award certificate in honor of your contribution. Congratulations and thanks for your contribution. Thanks to Vabz, Don, Paul, Prince, Noorain, Kuldeep, David and all other folks for helping excel enthusiasts voluntarily !! Keep posting. Regards, Ayush Jain Group Manager P.S. If you have any feedback, please share your thoughts by filling the survey form https://docs.google.com/spreadsheet/viewform?fromEmail=trueformkey=dHpYdmt TeWZBcEhDWDhmandNWDlpYXc6MQ . -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com.
RE: $$Excel-Macros$$ Query - Circle Invalid...
There is a Data Validation option to Circle Invalid DAta -- data that does not match the data validation rule for its cell. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Excel Vba Sent: Thursday, September 13, 2012 8:46 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Query - Circle Invalid... I think it is excel 2010 version. When you goto Data tab, then select Data validation drop down. You will find second option. It automatically select the invalid data. On Thu, Sep 13, 2012 at 8:13 PM, Paul Schreiner schreiner_p...@att.net wrote: Circle Invalid? Are you refering to a Circular Reference? I've never heard of a Circle Invalid function. Paul - Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can. - John Wesley - _ From: Excel Vba excelvba.lear...@gmail.com To: excelvbacli...@googlegroups.com Sent: Thu, September 13, 2012 10:11:28 AM Subject: $$Excel-Macros$$ Query - Circle Invalid... Hi Group, I want to know how Circle Invalid function works in excel and vba. Regards, Hemant. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+
RE: $$Excel-Macros$$ Solution for Index array formula
Hi Amar, For the best response to your questions, please explain your question in your email message. In your follow-up message today, which had neither the question nor the attachment, it was impossible to tell what you needed help with without checking the list archives! Here is a solution. In cell W20 place this formula: =SUMPRODUCT(--($V20=$C$8:$C$17),--($W$14=$D$8:$D$17),--($Y$14=$E$8:$E$17),OF FSET(INDEX($G$7:$I$7,,MATCH(W$19,$G$7:$I$7)),1,($X$14-1)*COLUMNS($F$7:$I$7), ROWS($C$8:$C$17))) Then copy that formula to all other cells in the range W20:Y24 -- the formula will adjust properly for each cell automatically. I notice that You have two groups of names that you are selecting from (with Data Validation in V18). Your existing formulae, and the formula I provided, do not consider the name group as a criterion. For the most part, the names ni each group are different, so in those cases it's irrelevant. But you have a Sam in each group. Both our formulae will return the values for whichever Sam matches all the other criteria -- regardless of name group. Here is an upate to my provided formula that will limit the result to the specified name group, too. Put in cell W20 and copy across and down: =SUMPRODUCT(--($V20=INDIRECT($V$18)),--($W$14=OFFSET(INDIRECT($V$18),,1)),-- ($Y$14=OFFSET(INDIRECT($V$18),,2)),OFFSET(INDEX(OFFSET(OFFSET(INDIRECT($V$18 ),,4)3),,MATCH(W$19,$G$7:$I$7)),,($X$14-1)*COLUMNS($F$7:$I$7),ROWS(OFFSE T(INDIRECT($V$18),,1 Gains in efficiency could be made with further analysis, but hope this helps. If with all your real data the spreadsheet is too slow, you can come back for further help if needed. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of amar takale Sent: Friday, September 07, 2012 6:48 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Solution for Index array formula -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com.
RE: $$Excel-Macros$$ Re: treeview
Hi James, Microsoft gives warnings about running 64-Bit office, and notifies users in advance that there will be compatibility issues. With 3rd party components, those issues are pretty much unavoidable, but its true Microsoft could have updated their own various components to 64-bit versions for compatibility. These compatibility issues are the same ones that reserved 64-bit web browser versions to experimental use for years. 64-bit Office is not generally recommended yet except for cases of specialized user requirements. What Microsoft should have done, in my view, is allowed side-by-side 32 and 64 bit office installations, and given end-users the best of both worlds on a single workstation. I can understand a reticence to update Visual Basic 5 and 6 components for another architecture, when those components are not part of Office, and the application they are part of -- VB6 -- was released in January 1999 -- approaching 14 years ago. It's great that Microsoft is still maintaining compatibility with those components (not saying they are updating them), including in Windows 8 where they continue to distribute the core components with OS installation. If Common Controls was part of Office, I would say you have a very good argument, but it's part of another application. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of james D Sent: Sunday, September 09, 2012 11:15 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: treeview Sorry, I don't really understand your point. I realise VSTO will be the way to go, I don't really have many issues with that. My point is that I pay MS a lot of money, as do my clients. Solutions have been built in good faith that MS will maintain backwards compatibility, and they are effectively costing myself, and my clients a lot of money - to redevelop solutions, because they don't want to make their new products wholly backwards compatible. I consider that irresponsible and pretty bad in terms of customer service. What argument is there for not making it backwards compatible so existing solutions continue to work? to force all devlopers and clients to buy Visual Studio and redevelop all their existing VBA solutions? Is that not some kind of con? On Sunday, 9 September 2012 14:44:51 UTC+1, bpascal123 wrote: At some point, developing for Office requires access to Visual Studio full package or alternative equivalent tools. I don't think it's about killing VBA for VSTO, I would see this more like setting or defining a border between Office custom solution and Office professional solution. It makes sense, MS wants to keep a hand on major widely used products. To me, as I can't access Visual Studio or other equivalent application for developers, I would look for open source solutions where I can implement a solution that can access system resources and properties... On Saturday, September 8, 2012 10:27:24 AM UTC+1, james D wrote: I think MScomt2 is a version of mscomctl, not really sure. Seems we're all agreed things won't work in 64 bit office. Which is not great for developers. It would take MS days to sort this out, as opposed to developers and clients spending months sorting it out - not to mention us developers who will inevitably end up with soured client relationships due to this. Feels like MS are trying to kill VBA for VSTO. Fine, I'm sure everyone will follow suit, but why screw everyone over in the process? On Friday, 7 September 2012 17:38:42 UTC+1, james D wrote: Hi. I am a VBA developer (Excel mainly) - I have built an Excel dashboard which contains a userform with a treeview on it. It all works fine pre Windows 7 with Office 2010, but with Windows 7 (and Office 2010) the treeview is no longer visible on the form. I have been searching most of the day. I have a registered (as admin) version of mscomctl.ocx in sysWOW64 - still nothing... can anyone help? When I add a reference to mscomctl in Tools/references, then choose additional controls via the toolbox treeview is not in the list... is it supposed to be in mscomctl? Thanks, James NB: This isn't an issue just on my machine, several others have the same issue. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated
RE: $$Excel-Macros$$ Re: treeview
Here's Microsoft's policy spelled out in their words: Visual Basic 6.0 Runtime Usage Inside VBA and Office Visual Basic for Applications, or VBA, is a distinct technology commonly used for application automation and macros inside of other applications, most commonly inside Microsoft Office applications. VBA ships as a part of Office and therefore the support for VBA is governed by the support policy of Office. However, there are situations where VBA is used to call or host Visual Basic 6.0 runtime binaries and controls. In these situations, Visual Basic 6.0 supported runtime files in the OS and the extended file list are also supported when used inside of a supported VBA environment. For VB6 runtime scenarios to be supported inside VBA, all of the following must be true: The host OS version for VB runtime is still supported The host version of Office for VBA is still supported The runtime files in question are still supported That policy and the explanation of support and compatibility for the VS6/VB6 runtimes as a whole can be found at http://msdn.microsoft.com/nb-no/vbrun/ms788708%28en-us%29.aspx. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Monday, September 10, 2012 12:53 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Re: treeview Hi James, Microsoft gives warnings about running 64-Bit office, and notifies users in advance that there will be compatibility issues. With 3rd party components, those issues are pretty much unavoidable, but its true Microsoft could have updated their own various components to 64-bit versions for compatibility. These compatibility issues are the same ones that reserved 64-bit web browser versions to experimental use for years. 64-bit Office is not generally recommended yet except for cases of specialized user requirements. What Microsoft should have done, in my view, is allowed side-by-side 32 and 64 bit office installations, and given end-users the best of both worlds on a single workstation. I can understand a reticence to update Visual Basic 5 and 6 components for another architecture, when those components are not part of Office, and the application they are part of -- VB6 -- was released in January 1999 -- approaching 14 years ago. It's great that Microsoft is still maintaining compatibility with those components (not saying they are updating them), including in Windows 8 where they continue to distribute the core components with OS installation. If Common Controls was part of Office, I would say you have a very good argument, but it's part of another application. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of james D Sent: Sunday, September 09, 2012 11:15 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: treeview Sorry, I don't really understand your point. I realise VSTO will be the way to go, I don't really have many issues with that. My point is that I pay MS a lot of money, as do my clients. Solutions have been built in good faith that MS will maintain backwards compatibility, and they are effectively costing myself, and my clients a lot of money - to redevelop solutions, because they don't want to make their new products wholly backwards compatible. I consider that irresponsible and pretty bad in terms of customer service. What argument is there for not making it backwards compatible so existing solutions continue to work? to force all devlopers and clients to buy Visual Studio and redevelop all their existing VBA solutions? Is that not some kind of con? On Sunday, 9 September 2012 14:44:51 UTC+1, bpascal123 wrote: At some point, developing for Office requires access to Visual Studio full package or alternative equivalent tools. I don't think it's about killing VBA for VSTO, I would see this more like setting or defining a border between Office custom solution and Office professional solution. It makes sense, MS wants to keep a hand on major widely used products. To me, as I can't access Visual Studio or other equivalent application for developers, I would look for open source solutions where I can implement a solution that can access system resources and properties... On Saturday, September 8, 2012 10:27:24 AM UTC+1, james D wrote: I think MScomt2 is a version of mscomctl, not really sure. Seems we're all agreed things won't work in 64 bit office. Which is not great for developers. It would take MS days to sort this out, as opposed to developers and clients spending months sorting it out - not to mention us developers who will inevitably end up with soured client relationships due to this. Feels like MS are trying to kill VBA for VSTO. Fine, I'm sure everyone will follow suit, but why screw everyone over in the process? On Friday, 7 September 2012 17:38:42 UTC+1, james D wrote: Hi. I am a VBA developer (Excel mainly) - I have built an Excel dashboard which
RE: $$Excel-Macros$$ Need help - To divide the string into three parts
Hi Mangesh, I've read your other replies, and as to why you haven't received a formula method -- most people don't want to take the trouble on a volunteer basis to provide a more complex or difficult solution to a given problem when simple solutions exist. Also in business, the simplest solution is the best value. But I understand that in learning all aspects of a program, sometimes the exercise of solving a problem in various ways is useful. I will provide a formula solution for you. Although it could be solved several ways, I prefer using an array formula, since it can be written in such a way that it can handle a string of text with any number of commas, whereas non-array solutions would be limited to a set maximum. However, even with the array solution, and even though the array will contain all of the parts of the text string, you will only see on your spreadsheet as many parts as there are cells in the area you place the array formula (there are ways to use array formulas with too large of arrays to display on your spreadsheet ,as part of other formulas, that are useful; for example extracting certain values matching a condition, or summarizing the data (in your data, you might want to know how many Mumbais there are, how many 32145s, etc.), without actually displaying in multiple columns all the split data. .Select any cell on row 2 of your spreadsheet, then create the following defined names using the Name Manager (formulas tab in Excel 2007+). I recommend making them Sheet-level names rather than the default Workbook-level. 1. Name =$A2 2. _Name.Terminated =Name, 3. _Name.ColumnIdx =TRANSPOSE(ROW(INDIRECT(1:LEN(_Name.Terminated)-LEN(SUBSTITUTE(_Name.Term inated,,,) 4. _Name.StartPositions =IF(Name.ColumnIdx1,FIND(CHAR(1),SUBSTITUTE(Name,,,CHAR(1),_Name.ColumnId x-1)))+1 5. _Name.StopPositions =FIND(CHAR(1),SUBSTITUTE(_Name.Terminated,,,CHAR(1),_Name.ColumnIdx))-1 6. Name.Columns =MID(Name,_Name.StartPositions,_Name.StopPositions-_Name.StartPositions+1) The purpose of using the defined names is to simplify the formula by breaking it into steps. Insofar as the steps are referred to more than once in the formula, it should make the formula faster to evaluate too. Name.Columns is the culmination of our calculation and results in an array containing each comma-separated value from column A, divided into separate columns. .To display the column-separated values on your spreadsheet, enter the following formula in B2: =Name.Columns .Then highlight from B2 to the furthest column on row 2 needed to display the maximum number of values ever expected. For a maximum of 3 values, highlight B2:D2, or for maximum of 10, B2:K2, etc. .Then hit F2 (edit cell) and Ctrl-Shift-Enter (confirm array formula). This confirms a multi-cell array formula over the selected cells. .Copy the array-entered range from row 2 (e.g. B2:D2) to every other row in your table. Hope this is of interest, Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Mangesh Vimay Sent: Monday, September 10, 2012 4:04 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Need help - To divide the string into three parts Hi Friends, I need your help to divide the string into three parts. The description and sample is given below : Inline image 1 Waiting for your response. Thanks. -- With regards, MaNgEsH -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick
RE: $$Excel-Macros$$ detecting loggedin user
Hi Midhun, I like Paul's thorough response. I thought I'd mention that there is a simpler / easier-to-remember way of detecting the logged-in user's name from a macro: Function ReturnUserName() As String UserName = Environ(USERNAME) End Function It is slightly less secure, since the environment variable could be fairly easily modified by a knowledgeable user (in other words Paul's method is actually preferable). But no security you implement in Excel will be high security anyway. If the data you are hiding is of an actual confidential nature, I would recommend instead using a macro to generate a copy of the spreadsheet that only contains the data for a single user, and sending that to the end-user. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Paul Schreiner Sent: Monday, September 10, 2012 12:06 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ detecting loggedin user Here's something I threw together from macros I already had. I didn't spend too much time on it. I hope they have what you're looking for. There are several things you MENTIONED that I tried to include. Since you want the user to view ONLY his performance, I added filters to the YTD Output sheet and protected it with a password testpassword. (you can change it to whatever you wish) The file should be saved with only blank rows displayed and password protected. You'll also want to password protect your VBA project so that the users won't be able to open the VBEditor and read the sheet password. When the user opens the file, it determines the user's ID based on his/her Windows login. It then updates the Userid in the YTD Performance sheet. A change Event on this sheet checks for a changed userid and calls a function that unprotects the Output sheet, changes the filter to include only the userid, then re-protects the sheet. hope this gives you enough to work with to complete your task. Paul - Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can. - John Wesley - _ From: Midhun Thampan midhun.tham...@gmail.com To: excel-macros@googlegroups.com Sent: Mon, September 10, 2012 1:04:27 PM Subject: $$Excel-Macros$$ detecting loggedin user Hi All; This is a excel file which has a database which will be locked. Just need a code tht will detect only the information of user who logs on the computer. Our system is logged in via 5 digit userid so as someone opens this file his userid should detected so tht he can only view his particular performance.. Kindly help, i tried but did not work. -- Midhun -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To
RE: $$Excel-Macros$$ I want to Learn Array Formulas
I don't know the book, but here it is. Rajan had a small typo in the author's name, perhaps that was the difficulty: http://www.amazon.com/Microsoft-Functions-Formulas-Edition-Computer/dp/19364 20015/ref=pd_bxgy_b_text_y/185-8930763-6171505 Or the downloadable Kindle Edition: http://www.amazon.com/Microsoft-EXCEL-Functions-Formulas-ebook/dp/B005F5CR1K /ref=kinw_dp_ke Google is selling an ebook of the first edition (2007) at https://play.google.com/store/books/details/Bernd_Held_Microsoft_Excel_Funct ions_Formulas?id=8eNji8NTudAC https://play.google.com/store/books/details/Bernd_Held_Microsoft_Excel_Func tions_Formulas?id=8eNji8NTudACfeature=search_result#?t=W251bGwsMSwxLDEsImJv b2stOGVOamk4TlR1ZEFDIl0 feature=search_result#?t=W251bGwsMSwxLDEsImJvb2stOGVOamk4TlR1ZEFDIl0 for a lower price. Here are links to some online tutorials: .Array Formulas by Chip Pearson http://www.cpearson.com/excel/ArrayFormulas.aspx .Introduction to Array Formulas by Colin Legg. (His website www.colinlegg.co.uk may have an updated vesion but seems to be down at the moment.) http://www.xtremevbtalk.com/showthread.php?t=296012 .Array Formulae -- Charles Williams (Decision Models) http://www.decisionmodels.com/optspeedj.htm .An introduction to array formulas -- Tushar Mehta http://www.tushar-mehta.com/publish_train/xl_vba_cases/array_formulas.htm .Multiple Condition Tests -- Bob Phillips (xlDynamic) http://www.xldynamic.com/source/xld.SUMPRODUCT.html .How SUMPRODUCT and differential rates work -- John McGimpsey http://www.mcgimpsey.com/excel/variablerate1.html .Using Array Formulas in Excel -- Bob Umlas http://www.emailoffice.com/excel/arrays-bobumlas.html .What are Array Formulas? -- Ozgrid http://www.ozgrid.com/Excel/arrays.htm .Anatomy of an Array Formula -- Dick Kusleika http://www.dailydoseofexcel.com/archives/2004/04/05/anatomy-of-an-array-form ula/ .Introducing array formulas in Excel -- Colin Wilcox and John Walkenbach https://office.microsoft.com/en-us/excel-help/introducing-array-formulas-in- excel-HA001087290.aspx .Guidelines and examples of array formulas -- Colin Wilcox and John Walkenbach https://office.microsoft.com/en-us/excel-help/guidelines-and-examples-of-arr ay-formulas-HA010228458.aspx .Putting basic array formulas to work -- John Walkenbach https://office.microsoft.com/en-us/excel-help/putting-basic-array-formulas-t o-work-HA001087292.aspx .When to use a SUM(IF()) array formula -- Microsoft http://support.microsoft.com/kb/275165 .thoughts: Ignorance - an excellent starting point for learning -- Jan Nordgreen (Mum). Details a problem and how it was solved, step-by-step, for weighted-average test scores. http://mumnet.easyquestion.net/thoughts/ignorance.htm .A quick introduction to arrays and array formulas -- Larry Blaisdell http://www.uninets.net/~blaisdel/Excel_Array.htm .Excel Array Formula -- Linda Treacy http://www.myonlinetraininghub.com/excel-array-formula .All articles with 'array formulas' Tag -- Chandoo http://chandoo.org/wp/tag/array-formulas/ Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of maksood alam Sent: Saturday, September 08, 2012 3:56 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ I want to Learn Array Formulas don don don, i did't find it thats why am asking, why u take all the thing in wrong way. On 9/7/12, dguillett1 mailto:dguille...@gmail.com dguille...@gmail.com wrote: Is there some reason you cannot google it yourself Don Guillett Microsoft Excel Developer SalesAid Software mailto:dguille...@gmail.com dguille...@gmail.com From: maksood alam Sent: Friday, September 07, 2012 12:50 PM To: mailto:excel-macros@googlegroups.com excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ I want to Learn Array Formulas Hi Rajan Please provide the link to download Excel function and formulas by Berend held On Fri, Sep 7, 2012 at 7:24 PM, Rajan_Verma mailto:rajanverma1...@gmail.com rajanverma1...@gmail.com wrote: Google and Download this book Excel function and formulas by Berend held Regards Rajan verma +91 7838100659 [IM-Gtalk] From: mailto:excel-macros@googlegroups.com excel-macros@googlegroups.com [ mailto:excel-macros@googlegroups.com mailto:excel-macros@googlegroups.com] On Behalf Of Waseem Saifi Sent: 07 September 2012 2:59 To: mailto:excel-macros@googlegroups.com excel-macros@googlegroups.com Subject: $$Excel-Macros$$ I want to Learn Array Formulas Hi All Members, I want to learn array formulas in excel 2007. Please send me some useful stuff or refer me any useful link to learn array formulas. thanx in advance.
RE: $$Excel-Macros$$ Re:
To Harshad: In Excel 2010 you can use the DisplayFormat object, which indicates the range (cell) format properties as actually displayed, including conditional format and table style effects. Bob Phillips and Chip Pearson have both published functinos that can evaluate the color of a cell according to conditional formatting in older/any versions of Excel: Bob's: http://www.xldynamic.com/source/xld.CFConditions.html Chip's: http://www.cpearson.com/excel/cfcolors.htm I think Bob's (as I recall), which was developed more recently, improves upon Chip's method. But in many cases, the best approach is to not look for a formula to evaluate the color of the cell, but to just evaluate the conditions specified in the formatting rule, right in your cell formula. If cells with a value 0 are highlighted in red, for example, just have your formula check for values 0. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of David Grugeon Sent: Sunday, September 09, 2012 12:15 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Hi Don The question said the colours are set by conditional formatting. This does not affect interior.ColorIndex. AFAIK the only way to do it is to apply the same test for the condition as you used in the conditional formatting. On 10 September 2012 02:18, dguillett1 dguille...@gmail.com wrote: Or this to look in column A for the colors in column C Sub sumcolormatchSAS() Dim c As Range Dim i As Long Dim csum As Long For Each c In Range(c2:c3) c.Offset(, 1) = 0 For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row If Cells(i, 1).Interior.ColorIndex = c.Interior.ColorIndex Then _ c.Offset(, 1) = c.Offset(, 1) + Cells(i, 1) Next i Next c End Sub Don Guillett Microsoft Excel Developer SalesAid Software dguille...@gmail.com From: Prince Dubey mailto:prince141...@gmail.com Sent: Sunday, September 09, 2012 10:14 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: Hi Harshad, Please see the attachment hope this will help you. regards prince On Sunday, September 9, 2012 12:19:35 PM UTC+5:30, harshad shukla wrote: dear all, I had a query where in i had to sum the values of cell based on cell colour.that is to add all numbers of a row whose cell colour is conditionally formatted to grren and yellow colours. please help for the same.Could not devise a formula or macro for differentiating cell based on cell colour. regards Harshad Shukla http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/sign atureline.htm@Middle? http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/sign atureline.htm@Middle? http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/sign atureline.htm@Middle? Follow Rediff Deal ho jaye! to get exciting offers in your city everyday. http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/sign atureline.htm@Middle? -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/sign atureline.htm@Middle? -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted
RE: $$Excel-Macros$$ Noorain Ansari - Most Helpful Member August 2012
Congratulations Noorain. You are a real asset. Agreed that the certificate is a great idea. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of NOORAIN ANSARI Sent: Wednesday, September 05, 2012 6:55 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Noorain Ansari - Most Helpful Member August 2012 Thank you very much to all the Members of the Group who deemed me worthy for this achievement. Aside to Ayush: Most helpful Award Certificate is very lovely and nice,it will encourage to our group member to solve query more and more. Thanks brother for this creativity. -- With Regards, Noorain Ansari http://www.noorainansari.com http://noorainansari.com http://www.noorainansari.com http://www.excelvbaclinic.blogspot.com http://excelvbaclinic.com http://www.excelvbaclinic.blogspot.com On Wed, Sep 5, 2012 at 5:19 PM, SAGAR KASANGOTTUWAR sagarkasangottu...@gmail.com wrote: Dear Noorain, Congratulations Regards, CA KSAGAR On Tue, Sep 4, 2012 at 3:42 PM, Kal xcel kalx...@gmail.com wrote: Brother, I think, beside your achievement I also achieved somethingthat is.. I got a really nice person called NOORAIN ANSARI. Till date whenever I faced any problem in excel I got immediate answer from you. So I can describe it like this... ANSWER = ANSARI And your ACHIEVEMENT!! it's became your habit. Keep it up brother Kalyan On Mon, Sep 3, 2012 at 8:27 PM, xlstime xlst...@gmail.com wrote: Congratulations Noorain On Sun, Sep 2, 2012 at 10:32 AM, Ayush Jain jainayus...@gmail.com wrote: Dear members, Once again, Noorain Ansari has been selected as 'Most Helpful Member' for the month of Aug'12. He has posted 111 posts in August 2012 and helped many forum members through his excel expertise. I truly appreciate his consistency and commitment to the group. He is really doing great job. Noorain, please find enclosed the award certificate in honour of your contribution. Thanks to all other folks for helping excel enthusiasts voluntarily !! Keep posting. Regards, Ayush Jain Group Manager Microsoft MVP -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . -- . -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . -- Kalyan Chattopadhyay Executive Sales Coordinator R. S. H. Pvt. Ltd. -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get
RE: $$Excel-Macros$$ Change Column Size
Additionally, although it is quite possible to detect when one of the data-val. cells has been selected, perform a task, then when another cell's been selected, reverse the original task (mburkett -- you'll need to track some data between events to do that), your code then has to figure out how wide to make the cell. There is not exactly accuarate way to calculate how wide a cell needs to be based on text not in the cell. The only accurate and reliable way is to use autofit on the column after placing the text in the cell. You could have your code do that -- taking care to avoid unwanted side effects (like triggering another event that takes an unwanted action) to measure the text. Actually, if you really wanted to, you could do place the text in some OTHER cell and measure it that way. You might guess that the longest string of text on the DV list will take up the most space, but not necessarily. So to be sure, you'd have to measure all the values to find the width you want. This might take a noticable amount of time, so you could calculate and store in the workbook the corresponding widths along with the DV values, which you might calculate in a Change event whenever those DV values are changed, instead of every time a DV cell is selected. It's not a short simple answer. Sorry I haven't coded a solution, but perhaps my analysis is helpful. I can go into greater detail if you have questions (mburkett), but probably won't have time to work on it. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Paul Schreiner Sent: Friday, August 31, 2012 12:18 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Change Column Size From his description, I think he's looking for something like a SelectionChange Event. Where, when he selects the cell with the pull-down, it automatically changes the width of the column to ##. Then, when a different cell is selected, the column returns to it's original width. Paul - Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can. - John Wesley - _ From: NOORAIN ANSARI noorain.ans...@gmail.com To: excel-macros@googlegroups.com Sent: Fri, August 31, 2012 2:33:54 PM Subject: Re: $$Excel-Macros$$ Change Column Size Without VBa Code you can use.. Alt+O+C+A On Fri, Aug 31, 2012 at 11:44 PM, NOORAIN ANSARI noorain.ans...@gmail.com wrote: Dear Mburket, You can use.. Sub column_fit() Cells.Columns.AutoFit End Sub On Fri, Aug 31, 2012 at 11:41 PM, mburkett michaelburk...@gmail.com wrote: I am using a list with data validation in cells c64:c74. The choices are very long text strings. Does anyone have code that will expand the column width when I select any of the cells and return to original (or specific) size once deselected? -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com . -- With Regards, Noorain Ansari http://www.noorainansari.com/ http://noorainansari.com http://www.noorainansari.com/ http://www.excelvbaclinic.blogspot.com/ http://excelvbaclinic.com http://www.excelvbaclinic.blogspot.com/ -- With Regards, Noorain Ansari http://www.noorainansari.com/ http://noorainansari.com http://www.noorainansari.com/ http://www.excelvbaclinic.blogspot.com/ http://excelvbaclinic.com http://www.excelvbaclinic.blogspot.com/ -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not
RE: $$Excel-Macros$$ Baler Software
Please don't ban me (I won't do it again) indicates foreknowledge and intent! -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. 6) Jobs posting is not allowed. 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups MS EXCEL AND VBA MACROS group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com.
RE: $$Excel-Macros$$ Noorain Ansari - Most Helpful Member July 2012
Congratulations Noorain! From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Ayush Jain Sent: Friday, August 03, 2012 10:40 AM To: excel-macros Subject: $$Excel-Macros$$ Noorain Ansari - Most Helpful Member July 2012 Dear members, Noorain Ansari has been selected as 'Most Helpful Member' for the month of July'12. He has posted 143 posts in July 2012 and helped many forum members through his excel expertise. I truly appreciate his consistency and commitment to the group. He is really doing great job. Thanks to Don, Deba Ranjan, Magnesh, Ashish, Rajan, bpascal, Prince, Sunita and other folks for helping excel enthusiasts voluntarily !! Keep posting. Regards, Ayush Jain Group Manager Microsoft MVP -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Failure of code when trying to break a section out into a seperate routine
Hi Anil, Try using the same data types in the calling routine ( PowerReturnOutput ? ) and the called routine ( EnterPN ). PNArray() and OutputRng have values in the immediate window. When you say they have values, do you mean they have the expected values? Did you check the elements of the array? After the line: For Each PN In PNArray() The sub exits and returns to the parent of the parent routine from which it was called (i.e the routine which called PowerReturnOutput())! If the sub exits early, it usually indicates a runtime error. With default error handling (no ON ERROR statements, or the last one was ON ERROR GOTO 0), code execution will stop and you'll enter debug mode with the code line generating the error highlighted and a message box indicating the error. However, if any procedure in the call chain implements an error handler that is active, then when an error occurs, execution will continue at that error handler, and debug mode will not automatically be entered. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Anil Pandit Sent: Sunday, July 15, 2012 3:04 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Failure of code when trying to break a section out into a seperate routine Hi all, I have the following code in a sub routine which works (please see code in bold font), but which I want in a separate routine, so I can re-use the code. -- Sub PowerReturnOutput() ' This sub procedure looks up the part number on sheet 4 and returns the ' part number description to sheet 2 Dim PwrAndGnd() As Variant Dim Distance As Long Dim CableType As String Dim PwrColour As String Dim RtnColour As String Dim PartNumber(1 To 6) As String Dim PN As Variant Dim Cell As Range Dim TOPwrGndPN As Range Dim TOPwrGndDesc As Range Dim XGPwrAndGnd As Range Set TOPwrGndPN = Range(TOPwrGndPN) Set TOPwrGndDesc = Range(TOPwrGndDesc) Set XGPwrAndGnd = Worksheets(Eagle XG Input).Range(XGPwrAndGnd) ' Return an array with the XGArray function. PwrAndGnd = XGArray(XGPwrAndGnd) ' Extract elements into variables, adding 10 to BDFB distance. Distance = PwrAndGnd(1) + 10 PwrColour = PwrAndGnd(3) RtnColour = PwrAndGnd(4) CableType = PwrAndGnd(5) ' Extract part numbers into an array PartNumber(1) = AWGxPwrRtnPN(Distance, PwrColour, CableType) PartNumber(2) = AWGxPwrRtnPN(Distance, RtnColour, CableType) PartNumber(3) = AWG1GndPN(CableType) PartNumber(4) = AWG6PwrRtnPN(PwrColour, CableType) PartNumber(5) = AWG6PwrRtnPN(RtnColour, CableType) PartNumber(6) = AWG6GndPN(CableType) ' Enter the part numbers in sheet 2 Call EnterPN(PartNumber, TOPwrGndPN) 'For Each PN In PartNumber() 'For Each Cell In TOPwrGndPN 'If IsEmpty(Cell) Then 'Cell.Value = PN 'Exit For 'End If 'Next Cell 'Next PN ' Enter the descriptions in sheet 2 For Each PN In PartNumber() For Each Cell In TOPwrGndDesc If IsEmpty(Cell) Then If PN = Not Available Then With Cell .Value = EAAA Brown AWG 2/0 cable is not available. .Font.Italic = True .Font.Color = vbRed .Offset(0, -1).Font.Italic = True .Offset(0, -1).Font.Color = vbRed End With Exit For Else Cell = AWGxPNDesc(PN) Exit For End If End If Next Cell Next PN End Sub -- I created another sub-routine which is called from the PowerReturnOutput routine: -- Sub EnterPN(PNArray, OutputRng) ' This sub procedure enters part numbers into the output range. Dim PN As Variant Dim Cell As Range For Each PN In PNArray() For Each Cell In OutputRng If IsEmpty(Cell) Then Cell.Value = PN Exit For End If Next Cell Next PN End Sub -- The code does not work. When I set a break-point and step through the code, I can see that the EnterPN routine is called and that PNArray() and OutputRng have values in the immediate window. After the line: For Each PN In PNArray() The sub exits and returns to the parent of the parent routine from which it was called (i.e the routine which called PowerReturnOutput())! I hope someone can help me understand and hopefully fix this behaviour. Regards, Anil -- -- FORUM RULES (986+ members already BANNED for violation) 1) Use
RE: $$Excel-Macros$$ macro with multiple rows
Hi Pawel, Here is a short answer to what I think you want. It is a generic solution to the key issue of copying formulas (and only formulas) down to the next row. Dim LastRowRange As Range ... Set LastRowRange = ... ' Determine last row's range here With LastRowRange.SpecialCells(xlCellTypeFormulas) .Offset(1).FormulaR1C1 = .FormulaR1C1 End With If you run into any difficulties, report back with your questions. Post the code you have come up with so far at that juncture and it will be easiest for us to assist. Also, a non-VBA solution if you use Excel 2007 or higher, is to simply convert your table or tables of data to actual Excel Tables. In that case, Excel will automatically bring your formulas down when you enter data on the next row (the feature is called calculated columns). Excel Tables have other benefits for working with tabular data, too. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of pawel lupinski Sent: Saturday, July 14, 2012 9:38 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ macro with multiple rows Hi DON, so what I need is check if in eg cell M10 is function (not empty cell) copy this function to column O:DO ( the same row ) and after calculation copy range O:DO and paste as a text. and make a loop ... cell M11 ... M12 ... and so on, if you can help me I will be appreciated. Regards, Pawel From: dguillett1 dguille...@gmail.com To: excel-macros@googlegroups.com Sent: Saturday, July 14, 2012 5:24 PM Subject: Re: $$Excel-Macros$$ macro with multiple rows I do NOT understand your need. Give examples if M___? is __then copy the VALUES to col O:DO etc Don Guillett Microsoft Excel Developer SalesAid Software dguille...@gmail.com From: pawel lupinski mailto:lupins...@yahoo.com Sent: Saturday, July 14, 2012 9:48 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ macro with multiple rows Sorry All correct file Hi All, I'd like to ask you help me with writting macro, problem is I've no idea how to do it? In column M there are functions (colour in white) that need to be copied accross rows (started from column O), but only these functions. When in column M there is nothing macro should be checking next cell in column M. Macro should be copied function (from column M) accross columns O to column DO, and after that save results as text. So for the future use I'd like to add additional product and macro will doing the same for this additional items. Please if you can check and help me in this. Regards, Pawel -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion
RE: $$Excel-Macros$$ Error Cleaning
Hi SG, Please provide also a sample of the result you want. If your spreadsheet has rows that do NOT have errors, include some of those in your sample as well. If there are additional columns from the ones you included in the file you already sent, please include them. :) Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of SG Sent: Friday, July 13, 2012 5:04 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Error Cleaning Hi Experts, I need your help again.We extract the data from database each user got some errors on different projects.I need to clean the error data to get the count of errors.For this,i do text to column on error column.Then, in each column after error column, i take the value one by one copy paste the data below the original data.It's too time consuming as data may expand up to many columns each column has irregular no. of errors description.I have tried to explain best need a macro to make unique row of erros of all users.I have attached the excel file a document in which i have tried to explain.Looking forward for your help. Thanks in advance. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Rajan Verma - Most helpful Member(June'12)
Extraorinary contribution, Rajan. Cheers. From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Ayush Jain Sent: Wednesday, July 04, 2012 9:17 AM To: excel-macros Subject: $$Excel-Macros$$ Rajan Verma - Most helpful Member(June'12) Hello Everyone, Rajan Verma has been selected as 'Most Helpful Member' for the month of June'2012. This is third time in row. :) He has posted 149 posts in June 2012 and helped many people through his expertise. I truly appreciate his consistency and commitment to group. He is really doing great job. Thanks to Noorain, Deba Ranjan, Don, David, Lalit, Lokesh, Hilary, Asa and other folks for helping excel enthusiasts voluntarily !! Keep it up !! Keep posting. Regards Ayush Jain Group Manager , Microsoft MVP -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ range formatting
Hi Pawel, You can accomplish this simply by using conditional formatting. You can either: 1. Use a default format and a conditional format. a. Format D5:J22 with one of the two formats. This would be your default format regarldess on the value in C2. b. Use a conditional format rule based on a formula. The formula would be =$C$2=1 (or $C$2=2) then set the appropraite format to go with the formula chosen. 2. Use two conditional format rules. a. one for the formula =$C$2=1 b. another form the formula $C$2=2 Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of pawel lupinski Sent: Tuesday, July 03, 2012 1:34 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ range formatting Hi All, I'd hope that you'd help me on this one. I'd like to change range formating depending on the number in cell C2. So if I'll pick 1 formating for range D5:J22 should be change to britsh pounds like in sheet2 So if I'll pick 2 formating for range D5:J22 should be change to formating like in sheet3 Can you please help me on this? Thanks Pawel see attachment. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ MVP Award....Congratulations Ashish Koul and Dilip Pandey !!
Congratulations Ashish and Dilip! From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Ayush Jain Sent: Sunday, July 01, 2012 9:25 AM To: excel-macros Cc: Dilip Pandey; ashish koul Subject: $$Excel-Macros$$ MVP AwardCongratulations Ashish Koul and Dilip Pandey !! Dear members, I am extremely happy to inform you that two members of the group are awarded Microsoft Most Valuable Professional Award. My heartiest congratulations to Ashish koul and Dilip Pandey and thanks for their big support to this forum. Keep posting ! Best regards, Ayush Jain Group Manager Microsoft MVP -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ MVP Award....Congratulations Ashish Koul and Dilip Pandey !!
Sorry to hear that. Your work is still valued by many, Don. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of dguillett1 Sent: Sunday, July 01, 2012 10:04 AM To: excel-macros Cc: Dilip Pandey; ashish koul Subject: Re: $$Excel-Macros$$ MVP AwardCongratulations Ashish Koul and Dilip Pandey !! And, Don Guillett was not re selected. Don Guillett Microsoft Excel Developer SalesAid Software dguille...@gmail.com From: Ayush Jain mailto:jainayus...@gmail.com Sent: Sunday, July 01, 2012 11:24 AM To: excel-macros mailto:excel-macros@googlegroups.com Cc: Dilip Pandey mailto:dilipan...@gmail.com ; ashish koul mailto:koul.ash...@gmail.com Subject: $$Excel-Macros$$ MVP AwardCongratulations Ashish Koul and Dilip Pandey !! Dear members, I am extremely happy to inform you that two members of the group are awarded Microsoft Most Valuable Professional Award. My heartiest congratulations to Ashish koul and Dilip Pandey and thanks for their big support to this forum. Keep posting ! Best regards, Ayush Jain Group Manager Microsoft MVP -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ What do you recommend?? If Formulas, Tables with macros, vlookups?
Hi Jorge, I am happy to help you. the table in the example transporter AA the volumes are the columns 1, 2 to 3, and 4 to 5, the column below is the weight, but there are some rules, imagine we have zone 1, but the kg are 8 but the volumes are 1, i´m must charge 2 instead of one, because the rule weight overules the other, whenever one rule is bigger than the other, we charge considering the highest value. No problem. I think I understand all the values on the Transporter (e.g. AA) tables now. You didn't explicitly state so, but I understand now that the value being lookup up on this table (in B4:D7) is the Cost. I also understand that the correct cost to select is the highest of the two costs, for the given Volumes or Weight. 1) Question, though; In your original message you said: i have a sheet where I every month i calculate the costs for logistics, there are 3 conditions (KM, Weight in KG, and Volumes), where i have to calculate depending on the data put in the columns B,C,D Here you stated that the Distance (KM) is a criteria for cost. a. Please tell me, on the Transporter AA table, where is the Distance? Or in any case, please explain how you want the distance to be considered. Perhaps the Cost is Cost per KM, and gets multipled as such in the cost table…? 2) The ranges of values on your Transporter table are somewhat unclear to me. a. Volumes: 1, 2-3, 4-5. If the Volumes number used for your lookup is always a whole number with no fraction, this is clear, but.. i. If it might contain a fraction, such as 1.3 or 1.9, what should happen? Should it be rounded up to 2 for the lookup in both cases? Should 1.3 be rounded down and 1.9 be rounded up? ii. If Volumes is 5 or 1 what should happen? (below the first range or above the last range) b. Weight: 1-5, 5-10, 10-100. Here your ranges actually overlap at the edges -- this is different from how you defined your ranges for Volumes. i. Which range should be used if the weight is exactly 5? The first range or the second? ii. What about 5.1 (if your data might contain fractions)? Would that be the first range or the second? iii. What about 1 or 100? (below the first range or above the last range) Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Jorge Marques Sent: Monday, July 02, 2012 2:34 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ What do you recommend?? If Formulas, Tables with macros, vlookups? HI, the table in the example transporter AA the volumes are the columns 1, 2 to 3, and 4 to 5, the column below is the weight, but there are some rules, imagine we have zone 1, but the kg are 8 but the volumes are 1, i´m must charge 2 instead of one, because the rule weight overules the other, whenever one rule is bigger than the other, we charge considering the highest value. i´m trying to do this with a table concatenating all the values and then using lookups, let´s see if I can succeed. 2012/6/29 Asa Rossoff a...@lovetour.info Hi Jorge, Looks like this can be handled using lookup formulas. One good way to perform lookups is to have a number representing each of your criteria each alone in their own cell, preferably all in the same table for all transporters. You can use pivot tables to generate the cross referenced charts you have now for easy human-reading for each shipper, and your Cost table can use lookup formulas to do its calculation. I'm a bit confused about a few details, and don't have a lot of time right now, but will try to take another look in the coming days if you haven't a solution yet. Some questions though: You refer to 6 items of data: (1) Transporter (2) Zone (3) Volumes (4) Weight/KG (5) Distance/KM (6) Cost. The charts for each Transporter seem to contain 4 items of data. 5 including the name of the transporter. I assume the row 2 of the transporter tables contain ranges for VOLUMES, row 3 ranges for WEIGHT/KG; Column 1 zontains ZONE. The data points in cells B4:D7 then must contain either DISTANCE/KM or COST… But which? And where is the other item? It's possible to perform a lookup that checks multiple criteria and finds the intersection on a table like this. Perhaps--since the ranges for volumes and KG seem to be the same for all transporters, as do the number of zones--insert another column either before or after the zone column for the Shipper name/ID, and include all transporters' data in the one table while maintaining a similar format. You can then use a lookup strategy that might go like this: use MATCH functions for each criteria
RE: $$Excel-Macros$$ For Each loop
Hi Richard, Here's my approach: Sub prototype() Const ColumnlarCriteria As String = X3:X10005 Dim LockRange As Range Dim LockRow() As Variant Dim Row As Long With Sheet1 .Protect userinterfaceonly:=True Set LockRange = .Range(Y3:AX1000) LockRow() = WorksheetFunction.Transpose(.Evaluate(ColumnlarCriteria)) For Row = 1 To LockRange.Rows.Count LockRange.Rows(Row).Locked = LockRow(Row) Next Row End With End Sub You can add logic to determine the used rows if you don't already know what they are. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Richard Sent: Tuesday, June 26, 2012 8:37 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ For Each loop Thanks for your reply, but I guess I wasn't clear -- condition a ===if the value of cell x3=5 then I want cells y3 through ax3 to be unprotected, otherwise I want them to be protected. condition b ===if the value of cell x35 then the reverse happens and I would to do it for each row with data, x4=7 then condition b is met x5=5 then condition a is met x6=8 then condition b is met and so forth through probably hundreds of rows On Tuesday, June 26, 2012 8:26:13 AM UTC-7, Rajan_Verma wrote: No need to Loop UsedRange.Replace X, Set rng=UsedRange.SpecialCells(xlcelltypeblanks) Rng.value=X Rng.entireColumn.Locked=True/False (whatever your want) Regards Rajan verma +91 7838100659 [IM-Gtalk] From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Richard Sent: 26 June 2012 8:54 To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ For Each loop This one always confuses me, but it is usually simple, so I would appreciate any help. I want to loop through all the rows with data in my worksheet and if the value in a certain cell is equal to x then I want to unprotect selected columns in that row, otherwise I want to reset the protection in those columns in that row. Thank you in advance for any help Rich -- -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ For Each loop
You also might want to consider using a worksheet.change event to modify the locked status on a given row range when and only when values in column X are changed. From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Saturday, June 30, 2012 6:24 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ For Each loop Hi Richard, Here's my approach: Sub prototype() Const ColumnlarCriteria As String = X3:X10005 Dim LockRange As Range Dim LockRow() As Variant Dim Row As Long With Sheet1 .Protect userinterfaceonly:=True Set LockRange = .Range(Y3:AX1000) LockRow() = WorksheetFunction.Transpose(.Evaluate(ColumnlarCriteria)) For Row = 1 To LockRange.Rows.Count LockRange.Rows(Row).Locked = LockRow(Row) Next Row End With End Sub You can add logic to determine the used rows if you don't already know what they are. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Richard Sent: Tuesday, June 26, 2012 8:37 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ For Each loop Thanks for your reply, but I guess I wasn't clear -- condition a ===if the value of cell x3=5 then I want cells y3 through ax3 to be unprotected, otherwise I want them to be protected. condition b ===if the value of cell x35 then the reverse happens and I would to do it for each row with data, x4=7 then condition b is met x5=5 then condition a is met x6=8 then condition b is met and so forth through probably hundreds of rows On Tuesday, June 26, 2012 8:26:13 AM UTC-7, Rajan_Verma wrote: No need to Loop UsedRange.Replace X, Set rng=UsedRange.SpecialCells(xlcelltypeblanks) Rng.value=X Rng.entireColumn.Locked=True/False (whatever your want) Regards Rajan verma +91 7838100659 [IM-Gtalk] From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Richard Sent: 26 June 2012 8:54 To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ For Each loop This one always confuses me, but it is usually simple, so I would appreciate any help. I want to loop through all the rows with data in my worksheet and if the value in a certain cell is equal to x then I want to unprotect selected columns in that row, otherwise I want to reset the protection in those columns in that row. Thank you in advance for any help Rich -- -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal
RE: $$Excel-Macros$$ Can I get the day of the week (e.g. Friday) from the date already encoded in a string?
Hi H, .Text = bad :) If you mean that the date is on the worksheet as text insead of as a date(dateserial). if the date matches the system local settings (i.e. date is in m/d/y format, your computer is set to m/d/y format) you can just use any of the methods I listed in my last post without any changes. If the date is textual, it will be coerced automatically to a dateserial for use by the format or worksheetfunction.text functions, i.e.: Format(Thisworkbook.Sheets(RawData).Cells(count, BarDate).Value2,) If the date is in text format, and the format is different from your system locale, there are various approaches for parsing the dates, either one at a time in this routine, or en masse on the worksheet first. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of tangledweb Sent: Tuesday, June 26, 2012 8:47 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Can I get the day of the week (e.g. Friday) from the date already encoded in a string? If I already have Sheets(RawData).Cells(count, BarDate).Text having a value like 6/26/2012 is there a way to get the day of the week as a number or string for that date that does not require splitting it into its parts and feeding them to some function? If the latter the .net examples I found for that did not make sense to me so how is it done? -- -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Can I get the day of the week (e.g. Friday) from the date already encoded in a string?
p.s. oops, so sorry, though you had posted a new quesiton :) not sure how I got to reading old posts. From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Saturday, June 30, 2012 7:36 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Can I get the day of the week (e.g. Friday) from the date already encoded in a string? Hi H, .Text = bad :) If you mean that the date is on the worksheet as text insead of as a date(dateserial). if the date matches the system local settings (i.e. date is in m/d/y format, your computer is set to m/d/y format) you can just use any of the methods I listed in my last post without any changes. If the date is textual, it will be coerced automatically to a dateserial for use by the format or worksheetfunction.text functions, i.e.: Format(Thisworkbook.Sheets(RawData).Cells(count, BarDate).Value2,) If the date is in text format, and the format is different from your system locale, there are various approaches for parsing the dates, either one at a time in this routine, or en masse on the worksheet first. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of tangledweb Sent: Tuesday, June 26, 2012 8:47 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Can I get the day of the week (e.g. Friday) from the date already encoded in a string? If I already have Sheets(RawData).Cells(count, BarDate).Text having a value like 6/26/2012 is there a way to get the day of the week as a number or string for that date that does not require splitting it into its parts and feeding them to some function? If the latter the .net examples I found for that did not make sense to me so how is it done? -- -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Re: Can I get the day of the week (e.g. Friday) from the date already encoded in a string?
Hi H., True, Value2 is not necessary for the Format function version, but depending on which alternative you are comparing it to, it is faster, more predictable, or both. with the options: CELL CELL.Value CELL.Value2 CELL.Text . * CELL is a Range object, so if you use it in the context of a value, you are implicitly asking for the default property of the range, which is for most practical purposes the same as the Value property. Always best to be explicit, though (especially because there are times when the Range might be used when you want the Value and vice-versa) * CELL.Value is the value of the cell, converted to a similar VBA datatype based on the contents of the cell and the way the cell is formatted. The problems with this are: 1) this takes time, and you often don't need this to occur, 2) the VBA datatypes do not hold exactly the same information, so there is a loss of data. For example, the VBA Date datatype is lower resolution for times (while supporting a wider range of dates) than date/times on the worksheet. The VBA Currency data type is not a floating point number, but a scaled decimal, which is it's strength (no rounding errors) -- but currencies on the worksheet are floating point numbers. VBA Currency stores 4 digits afte the decimal place; floating point numbers on the worksheet store slightly over 15 significant digits (either side of the decimal). * CELL.Value2 provides the exact underlying value of cells. It's the only way to preserve those values in VBA, and it's faster than CELL.Value. Value2 is always my first choice. I fall back to Value when I require the datatype conversion that Value does. * CELL.Text is a texual representation of the cell's data as formatted on the worksheet. This often results in a loss of underlying data. Unless you need a formatted string, it requires conversion back to an appropriate datatype (whether you do it explicitly or allow VBA to do it implicitly), and CELL.Text returns for hidden columns. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of tangledweb Sent: Thursday, June 28, 2012 10:25 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Can I get the day of the week (e.g. Friday) from the date already encoded in a string? Thanks Asa and belatedly Noorain. The format function worked and as it happens the other method was returning the wrong day for all those who might use it. The .value2 does not seem to be necessary but I left it anyway. On Wednesday, June 27, 2012 10:09:16 PM UTC-7, tangledweb wrote: Asa! Good to hear from you. I am fine. Hope the same for you. The example I posted seemed to work but I admit I did not check to see if the correct day was returned. Tomorrow I will do that and try out your format function version (which I think someone else posted earlier but I had not tried it yet). On Wed, Jun 27, 2012 at 9:35 PM, Asa Rossoff a...@lovetour.info wrote: Hi! Hope you are well. The VBA way is to use VBA's Format function (Replace CELL with the range object for the cell desired): Format(CELL.Value2, ) If you wanted to use the TEXT function, the example given -- I believe -- will return incorrect results. These versions would return the correct result (replace WORKSHEET/CELL): Worksheetfunction.Text(CELL, ) WORKSHEET.evaluate(text( CELL.address ,)) WORKSHEET.evaluate(text( CELL.value2 ,)) WORKSHEET.evaluate(text( CELL.value ,)) The Format function would be my preference, but of the TEXT function versions, the first is most efficient, then second, then third. The first uses a cell reference to supply the date value, the second a dateserial (Value2 returns a number for dates), the third a text representation of the date (the Value property converts date/time values on the worksheet to VBA's Date datatype, but when you concatenate it with a string, VBA's datatype coercion behavior is to convert it to a text representation using the system locale's short date and/or short time settings). The previous example acquired the cell value via it's Text property, which is dangerous and rarely desired. Text returns the value of the cell as formatted, but if the column is hidden, it returns an empty string. Also, the Day function will cause trouble. It's a common misunderstanding to think it should be used with the Text function, but this is almost never desired. Day returns a number between 1 and 7 to indicate the day of the week. Text formats dates or dateserial numbers, not day numbers. Text will interpret numbers between 1 and 7 as the first 7 days on it's dateserial calendar, which are 1/1/1900 through 1/7/1900. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of tangledweb Sent: Wednesday, June 27, 2012 8:23 PM To: excel-macros
RE: $$Excel-Macros$$ What do you recommend?? If Formulas, Tables with macros, vlookups?
Hi Jorge, Looks like this can be handled using lookup formulas. One good way to perform lookups is to have a number representing each of your criteria each alone in their own cell, preferably all in the same table for all transporters. You can use pivot tables to generate the cross referenced charts you have now for easy human-reading for each shipper, and your Cost table can use lookup formulas to do its calculation. I'm a bit confused about a few details, and don't have a lot of time right now, but will try to take another look in the coming days if you haven't a solution yet. Some questions though: You refer to 6 items of data: (1) Transporter (2) Zone (3) Volumes (4) Weight/KG (5) Distance/KM (6) Cost. The charts for each Transporter seem to contain 4 items of data. 5 including the name of the transporter. I assume the row 2 of the transporter tables contain ranges for VOLUMES, row 3 ranges for WEIGHT/KG; Column 1 zontains ZONE. The data points in cells B4:D7 then must contain either DISTANCE/KM or COST… But which? And where is the other item? It's possible to perform a lookup that checks multiple criteria and finds the intersection on a table like this. Perhaps--since the ranges for volumes and KG seem to be the same for all transporters, as do the number of zones--insert another column either before or after the zone column for the Shipper name/ID, and include all transporters' data in the one table while maintaining a similar format. You can then use a lookup strategy that might go like this: use MATCH functions for each criteria, and logic to determine the right combination of criteria, then use the index function to retrieve the selected column, and another index function to retrieve the selected row. Place a space between those two functions (all in the same formula) and Excel will return the intersection of that row and column, which will be a single matching cell. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Jorge Marques Sent: Friday, June 29, 2012 1:54 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ What do you recommend?? If Formulas, Tables with macros, vlookups? Hi guys i have a sheet where I every month i calculate the costs for logistics, there are 3 conditions (KM, Weight in KG, and Volumes), where i have to calculate depending on the data put in the columns B,C,D if it is zone 1,2,3 and has the volumes or weight under those limits it puts those values. if zone 4 and under those 3 limits we have to multiply the value in the table with the extra km in column D. Until now i only had 2 transport company´s so I used if formulas to calculate the costs, but now I have 3 more, a total of 5, and I think if i use if formulas it will be heavy on the code and generate errors. What do you recommend? Thank you very much in advance. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Copy JPG images from Word into Excel
Hi Paul, I have not automated Word much.. so these are just some thoughts: Have you already tried these ideas? 1) export from Word as MHT (images will be emebedded with the html file to reduce file clutter), then open the file in Excel. 2) Open the document in Word, Select All, Copy Excel: Paste 3) Print the word file to PDF, then use the Acrobat OLE automation (or perhaps some third-party PDF component) -- I think it's called the Interapplication Communication API -- to retrieve the document contents. Not even positive it offers that functionality. 4) Embed the Word document in your Excel file as-is. 5) Embed a PDF of the word document in your Excel file (if you want a standard format form consistency) I just tried the first two ideas, and although they brought everything over, the images sometimes were placed on top of the text. As to parsing an HTML file which you mentioned: I would think inline images would appear in the HTML file inline with the text. Their IMG tag should appear among the text where the image should be placed. Images anchored to the page might include CSS layout information to plcae them correctly and don't necessarily appear inline with the text that they are displayed next to. Accurately parsing all the layout data and covnerting it to display on a worksheet sounds problematic to me. Without some form of embedding, I don't think you'll be able to duplicate all aspects of the Word layout even if you read it accurately from the Word object model. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Paul Schreiner Sent: Friday, June 29, 2012 7:41 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Copy JPG images from Word into Excel I'm sorry, but here's the longer version of the story: I have an Oracle database. I use Excel as a front-end to the database. The Excel application is used to store and retrieve over 60,000 documents Each document consists of 2 to 130 sheets. Reporting tools allow me to search the content of all the documents very quickly. The application includes over 30,000 lines of VBA code (There is MUCH more going on with this application beyond storage and retrieval) I am now in the process of converting/loading over 3,000 inspection documents into this application. Unfortunately, the people who Designed the inspection documents chose to use a Word Processing program instead of a spreadsheet. (the oldest documents were originally in WordPerfect, then later converted to Word) I've moved most of the Word documents into specific folders. I now am writing VBA code (in Excel) to open each of the Word Documents, read the document and place the data into appropriate cells of the Excel templates. I successfully used: Set DocRange = mWord.ActiveDocument.Range(Start:=0, End:=0) DocRange.wholestory TxtArray = Split(DocRange.Text, Chr(13)) to loop through the TxtArray and populate the rows of the Excel file. - My problem now is that many of the documents contain image files. - I have spent 30+ hours searching and testing various approaches... I've discovered that while Excel utilizes the Shapes collection, SOME of these images in my Word files are found in the InlineShapes collection. With this code: For Each iShape In ActiveDocument.InlineShapes iShape.Select Selection.Copy Next iShape I am able to copy each shape to the ClipBoard, and I'm confident that I could switch to the Excel application and Paste it. I have also tried saving the Word document in HTML format, which effectively copies out all of the images (which is REALLY nice). However, I have another problem. I cannot seem to be able to figure out WHERE the shape is in the Word file. According to the documentation, InlineShapes are attached to a Range object (which is not quite the same as a Range in Excel) But I cannot seem to be able to figure out how to determine which LINE the image is attached to! And I haven't had any luck reading the HTML documents to determine placement. Any ideas? Paul - Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can. - John Wesley - -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post
RE: $$Excel-Macros$$ Saving Photos from webpage
Hi Kiran, I can help you off-list to meet your need exactly, for a reasonable fee. But first I will offer you some free advice and hints: 1. The product search results in a URL like http://www.jabong.com/catalog/?q=WR138MA56HVN+ http://www.jabong.com/catalog/?q=WR138MA56HVN+submit=baseUrl= submit=baseUrl= and seems to work fine with even http://www.jabong.com/catalog/?q=WR138MA56HVN;. 2. In the description of your requirement, you say navigating the website. I assume you mean prompting the user for their search term. If you mean something else, a more detailed description is needed. 3. Then you say Select photos.. I assume you mean download all the photos from the search. In some cases., there might be multiple pages of search results (I have not investigate that yet) so that would need to be considered in your macro. But perhaps you mean the photos should all be shown to the user and they choose specific pictures they want to retain. Can you clarify? 4. Then you say . and download the photos in the specified location. I assume you mean to prompt the user for a file folder where the pictures should be saved, and then save all of the relevant pictures there. Can you clarify? 5. If my assumptions are correct, you can probably use a command-line utility to perform the downloads after prompting the user for their search term and download location. a. Perhaps the classic such utility is WGET. It's an open source program, and you can get the latest full-featured Windows version from http://users.ugent.be/~bpuype/cgi-bin/fetch.pl?dl=wget/wget.exe. i. Type wget --help at the command line for basic instructions. Quick overview of simple usage at http://users.ugent.be/~bpuype/wget/. ii. Frequently Asked Questions (and answers) at http://wget.addictivecode.org/FrequentlyAskedQuestions. iii. Full online manual at https://www.gnu.org/software/wget/manual/wget.html iv. A ZIP archive with the offline manual in various formats can be downloaded from http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-doc.zip. Look for the CHM help file for easy perusal. b. More advanced (and perhaps more complicated) is the utility called cURL. Also open source. http://curl.haxx.se/ 6. For your own downloader implementation written fully in VBA that does not call out to a command-line utility, there are a few Windows APIs or automation objects that can be used, including as discussed below: a. A detailed article on both downloading and parsing web pages and files in VBA, by Tushar Mehta, can be found at http://www.tushar-mehta.com/publish_train/xl_vba_cases/vba_web_pages_service s/#_Toc173749359. Tushar uses XMLHTTP and InternetExplorer automation classes in the article, gives sample code, and discusses a number of issues. b. ADO's (ActiveX Data Objects') Stream class can download internet URLs. See http://msdn.microsoft.com/en-us/library/ms675032%28v=vs.85%29, http://msdn.microsoft.com/en-us/library/ms675955%28v=vs.85%29.aspx, http://msdn.microsoft.com/en-us/library/ms680846%28v=vs.85%29, http://msdn.microsoft.com/en-us/library/ms676745%28v=vs.85%29 and associated MSDN documentation. c. Samples using the WinInet API are detailed at http://www.lazerwire.com/2011/11/excel-vba-download-files-from-internet.html . d. An automation example using the XMLHTTP class is provided at http://blog.invisibledenizen.org/2008/11/vba-function-to-download-files.html . e. An automation example using WinHttpRequest is available from Microsoft at http://msdn.microsoft.com/en-us/library/aa384072%28VS.85%29.aspx (Some of the instructions relate to the Visual Basic IDE, but are not critical. The essence of the article applies to VBA.) f. Automation examples using XMLHTTP as well as WinHttpRequest are available from http://www.motobit.com/tips/detpg_read-write-binary-files/ (see section 3). g. There are InternetExplorer and WebBrowser automation controls. h. There is URLMon, part of the Internet Explorer API. It has functions such as URLDownloadToFile (download a URL to disk) and URLOpenPullstream or URLOpenBlockingStream which are approriate for downloading files and returning the data direcly to your VBA code to parse or handle as it desires without having to save it to disk first. All these methods would probably require: i. Download the HTML page with the search results. ii. Parse the HTML file and find the URLs for all the images. iii. Download the images and save to disk. If you want to hire me, send me an email off list. If you want to try it on your own, see if these tips help
RE: $$Excel-Macros$$ Find Narrow Cells Appying Auto fit to only that cell
Prashant: My guess is that your request is for a macro that will only Auto-Increase column widths -- never decrease them, which would unneccesarily change the look of the spreadsheet. Excel does not have a method of specifically identifying cells (or columns) where text has overflowed, but I can think of two ways to solve the problem (if I am guessing your intent correctly): 1) Examine the TEXT property of cells. This property indicates the displayed Value. If the formatted Cell.Value fits entirely in the cell, then Cell.Text is the formatted Cell.Value. If some of the Text is cut off, Cell.Text = a string of # symbols (same as you see on the spreadsheet). If the column is hidden, Cell.Text= (an empty string). It would be nice to be able to search the Text property for # (or any length string of #, then for those matches, apply the number format of the cell, conditional formats to the Value and compare it to the Text. If they are different, then the text has overflowed and we can Auto-Fit that entire column and then search for # (and the like) in other columns. There is no built-in search method that searches the Text property, though, so we would have to examine the spreadsheet cell-by-cell. Besides being complex, this method would miss the case of General format numbers with some digits after the decimal hidden from view due to a narrow column width. That case could be handled, but it would require comparing Text and formatted Value for maybe many more cells. In Excel 2010 we could use cell.Displayformat.Numberformat to determine the NumberFormat used for display, considering the cell format, conditional format, and anything else that I didn't think of. 2) This is a simpler method! Save the column widths---perhaps in an array. Autofit all columns. Loop through the columns and for any columns that decreased in size, re-apply their old column width. I will provide a macro for method #2. I will assume that you want a special case for already hidden columns and they should remain hidden. Also that cell values in hidden rows should not effect the column width. To accommodate those special cases, I will only apply AutoFit based on Visible cells. Here is the macro: Sub SizeColumns(Worksheet As Worksheet) Dim _ VisibleCellColumns As Range, _ VisibleCellEntireColumns As Range, _ Column As Range, _ OriginalColumnWidths As Collection, _ OriginalColumnWidth As Double, _ ScreenUpdatingState As Boolean ' Disable screen updating (and remember existing state) ScreenUpdatingState = Application.ScreenUpdating Application.ScreenUpdating = False ' Determine VisibleCellColumns to AutoFit Set VisibleCellColumns = Worksheet.UsedRange.SpecialCells(xlCellTypeVisible).Columns ' Determine VisibleCellEntireColumns for remembering column widths ' We use Application.Union to eliminate redundancy in the range. Set VisibleCellEntireColumns = _ Union( _ VisibleCellColumns.EntireColumn, _ VisibleCellColumns(1) _ ).EntireColumn ' Save current column widths to OriginalColumnWidths collection Set OriginalColumnWidths = New Collection For Each Column In VisibleCellEntireColumns OriginalColumnWidths.Add Column.ColumnWidth, CStr(Column.Column) Next Column ' Autofit visible cell's columns VisibleCellColumns.AutoFit ' Restore original column widths that were wider For Each Column In VisibleCellEntireColumns OriginalColumnWidth = OriginalColumnWidths(CStr(Column.Column)) If Column.ColumnWidth OriginalColumnWidth Then Column.ColumnWidth = OriginalColumnWidth End If Next Column ' Restore ScreenUpdating state Application.ScreenUpdating = ScreenUpdatingState ' Cleanup Set Column = Nothing Set OriginalColumnWidths = Nothing Set VisibleCellEntireColumns = Nothing Set VisibleCellColumns = Nothing Set Worksheet = Nothing End Sub If you want to have the columns sized automatically when you print the worksheet(s), you can use the workbook's BeforePrint event. Here's an example Workbook.BeforePrint event procedure (place it in the ThisWorkbook module): Private Sub Workbook_BeforePrint(Cancel As Boolean) Dim Sheet As Worksheet ' SizeColumns for all of ThisWorkbook's Worksheets. For Each Sheet In Me.Worksheets SizeColumns Sheet Next Sheet 'Cleanup Set Sheet = Nothing End Sub If you want to avoid sizing columns in every single worksheet when the user might only be printing one of the worksheets, it's a bit trickier, since Excel doesn't tell the macro what worksheets are currently being printed. The user might being printed a selected range, the active worksheet, a selection of multiple worksheets, or the entire workbook. If printing was initiated from a macro, there are many more possibilities, since what is
RE: $$Excel-Macros$$ Find Narrow Cells Appying Auto fit to only that cell
My post should work, but I made a boo boo. The SizeColumns macro should not have Set Workbook=Nothing at the end. Workbook was a parameter to the procedure, and setting it to Nothing will effect whatever other procedure called SizeColumns. Here is the corrected version of SizeColumns: Sub SizeColumns(Worksheet As Worksheet) Dim _ VisibleCellColumns As Range, _ VisibleCellEntireColumns As Range, _ Column As Range, _ OriginalColumnWidths As Collection, _ OriginalColumnWidth As Double, _ ScreenUpdatingState As Boolean ' Disable screen updating (and remember existing state) ScreenUpdatingState = Application.ScreenUpdating Application.ScreenUpdating = False ' Determine VisibleCellColumns to AutoFit Set VisibleCellColumns = Worksheet.UsedRange.SpecialCells(xlCellTypeVisible).Columns ' Determine VisibleCellEntireColumns for remembering column widths ' We use Application.Union to eliminate redundancy in the range. Set VisibleCellEntireColumns = _ Union( _ VisibleCellColumns.EntireColumn, _ VisibleCellColumns(1) _ ).EntireColumn ' Save current column widths to OriginalColumnWidths collection Set OriginalColumnWidths = New Collection For Each Column In VisibleCellEntireColumns OriginalColumnWidths.Add Column.ColumnWidth, CStr(Column.Column) Next Column ' Autofit visible cell's columns VisibleCellColumns.AutoFit ' Restore original column widths that were wider For Each Column In VisibleCellEntireColumns OriginalColumnWidth = OriginalColumnWidths(CStr(Column.Column)) If Column.ColumnWidth OriginalColumnWidth Then Column.ColumnWidth = OriginalColumnWidth End If Next Column ' Restore ScreenUpdating state Application.ScreenUpdating = ScreenUpdatingState ' Cleanup Set Column = Nothing Set OriginalColumnWidths = Nothing Set VisibleCellEntireColumns = Nothing Set VisibleCellColumns = Nothing End Sub Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Saturday, June 16, 2012 6:43 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Find Narrow Cells Appying Auto fit to only that cell Prashant: My guess is that your request is for a macro that will only Auto-Increase column widths -- never decrease them, which would unneccesarily change the look of the spreadsheet. Excel does not have a method of specifically identifying cells (or columns) where text has overflowed, but I can think of two ways to solve the problem (if I am guessing your intent correctly): 1) Examine the TEXT property of cells. This property indicates the displayed Value. If the formatted Cell.Value fits entirely in the cell, then Cell.Text is the formatted Cell.Value. If some of the Text is cut off, Cell.Text = a string of # symbols (same as you see on the spreadsheet). If the column is hidden, Cell.Text= (an empty string). It would be nice to be able to search the Text property for # (or any length string of #, then for those matches, apply the number format of the cell, conditional formats to the Value and compare it to the Text. If they are different, then the text has overflowed and we can Auto-Fit that entire column and then search for # (and the like) in other columns. There is no built-in search method that searches the Text property, though, so we would have to examine the spreadsheet cell-by-cell. Besides being complex, this method would miss the case of General format numbers with some digits after the decimal hidden from view due to a narrow column width. That case could be handled, but it would require comparing Text and formatted Value for maybe many more cells. In Excel 2010 we could use cell.Displayformat.Numberformat to determine the NumberFormat used for display, considering the cell format, conditional format, and anything else that I didn't think of. 2) This is a simpler method! Save the column widths---perhaps in an array. Autofit all columns. Loop through the columns and for any columns that decreased in size, re-apply their old column width. I will provide a macro for method #2. I will assume that you want a special case for already hidden columns and they should remain hidden. Also that cell values in hidden rows should not effect the column width. To accommodate those special cases, I will only apply AutoFit based on Visible cells. Here is the macro: Sub SizeColumns(Worksheet As Worksheet) Dim _ VisibleCellColumns As Range, _ VisibleCellEntireColumns As Range, _ Column As Range, _ OriginalColumnWidths As Collection, _ OriginalColumnWidth As Double, _ ScreenUpdatingState As Boolean ' Disable screen updating (and remember existing state) ScreenUpdatingState = Application.ScreenUpdating
RE: $$Excel-Macros$$ Translating
Good day Kiran, To manually translate, you can go to the Research task pane select Translation select language pair search for a word or phrase. .A quick way to get there is to ALT-Click a cell with text you want to translate to bring up the Research pane with that text pre-entered in the search box. To actually answer your question re. using a formula or macro -- I have not the experience! .BUT, it looks like you can use the RESEARCH object in Excel 2007+ VBA (check the Help, Google, or perhaps someone else here can give you an example) .AND, here is a link to some code from Patrick O'Beirne, on his blog, for utilizing the MicrosoftTranslator.com API for free from VBA: https://sysmod.wordpress.com/2012/01/09/microsoft-translator-vba-code-sample / Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Kiran Kancharla Sent: Friday, June 15, 2012 11:44 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Translating Hi All, Request you to please let me know, is there any Inbuilt formula or a Macro to translate words in Excel. -- Thanks Regards, Kiran -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Updating multiple excel workbooks
Hi Shoodie, Do you still need help with this? There are several ways to find the files you need to edit, depending on your target Excel versions, platforms (mac/windows), and security settings on the target operating system. Perhaps the most cumbersome of the available methods is the Dir command (along with GetAttr depending on your implementation), but the advantage to using this command to find your files is that it is available in all Excel versions and on all platforms. The other two most accessible methods are to use the Scripting.FileSystemObject (which is part of VBScript - windows only and some environments have it disabled for security reasons), and the FileSearch object which was once part of VBA. FileSearch was brilliantly simple but was removed after Excel 2003. I know Dir and the other current file commands and functions don't support Unicode in file or folder names. I am not sure about the other methods. It is possible to achieve Unicode support on Windows using the Windows API (I have code I can share for that). To search all subfolders with Dir or Scripting.FileSystemObject your search procedure can be recursive (call itself).e.g.: Sub ModifyFilesInFolder(Path As String) For each file. ModifyFile (file) ' sub to modify a file, or include the code here Next For each folder ModifyFilesInFolder(folder) ' recursive Next End Sub I can help you with the details if required. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Shoodie Sent: Wednesday, June 06, 2012 6:17 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Updating multiple excel workbooks Hi all I need a way to replace the contents of a particular cell (C8) of an Excel sheet to a specific value. I need to be able to run this macro so that it applies it to all the excel workbooks in a given folder and all its subfolders. Any ideas? -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Text Cleaning
Hi Sonal, Sure -- String * length indicates a fixed-length string of length number of characters in length. I used it because the variable will always hold exactly one character, but the usual variable length string (declared as just String) would have worked too. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of SG Sent: Tuesday, June 05, 2012 2:34 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Text Cleaning Hi Asa, your code really works exact for me.Thanks for the help but can u please explain why you have done this Character As String * 1. On Monday, June 4, 2012 9:14:07 PM UTC+5:30, Asa R. wrote: I re-read your query and I see you only wanted alphabet characters. I had this include numbers as well. for just alphabetical characters A-Z and a-z, here is the correction: Function CleanText(Text As String) As String Dim NewText As String, Character As String * 1, Position As Long For Position = 1 To Len(Text) Character = Mid(Text, Position, 1) If Character Like [A-z] Then NewText = NewText Character End If Next Position CleanText = NewText End Function By the way, welcome to the group! Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Monday, June 04, 2012 8:38 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Text Cleaning Hi Sonal, Another function for you: Function CleanText(Text As String) As String Dim NewText As String, Character As String * 1, Position As Long For Position = 1 To Len(Text) Character = Mid(Text, Position, 1) If Character Like [A-z] Or Character Like # Then NewText = NewText Character End If Next Position CleanText = NewText End Function You can use this as a UDF in a worksheet formula or call it from other macros. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of sonal gupta Sent: Monday, June 04, 2012 8:15 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Text Cleaning Hi, This is my first post in this group.I have learnt many things from this group.I'm finding difficulty in cleaning the range in which each cell has string like rahul;6e3-.I need a macro which will clean the special characters,spaces numbers leave the alphabets only. Thanks in advance. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data
RE: $$Excel-Macros$$ Date format calculation
Hi Deba, For the Login Time column, the reason SUM is not working properly is that many of the login times are being interpreted as text instead of as [h]:mm:ss entries. 1) For the login time column with a custom format: [h]:mm:ss or the corresponding preset Time format: 37:30:55 2) Then, only enter valid times. Your problem entries all have minutes or seconds 59, and Excel knows that this could not indicate time properly, so treats it as text. Correct the following entries: 879:55:64 899:54:78 98:54:87 87:54:78 198:89:55 3) Optionally remove cell justification. You have the cells left-justifed. If you remove justification, correct times will be right-justified, and incorrect ones will be interpreted as text and therefore left-justified. This helps in noticing a problem early on. 4) Get rid of the TEXT function in your total formula (the cell format takes care of formatting), and simply use: =SUM(B2:B8) For the Total login cell in the summary area (F3), simply refer to the total in B9 directly: =B9 For the No of days cell (F4): a. If you need the number of 24-hour periods for the Total login time use: =B9 and format the cell as a number (it will default to time format). The result will be in terms of days, since that is how Excel stores dates and times. b. If you need the number of periods of length 1 day hour (the number in F1), use: =B9*24/F1 (and format the cell as a number) For the Login time for 1 day. cell (F5), I don't really understand the formula or what you want, but perhaps the formula is correct and you just need to format the result for time: [h]:mm:ss Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Deba Ranjan Sent: Saturday, June 02, 2012 12:09 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Date format calculation Dear Experts, i have again got confusion in date and time format calculation, Please see the attached file, i have elaborate the details in the sheet. Please help in calculating the problem. Thanks Regards, Deba Ranjan P -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Text Cleaning
Hi Sonal, Another function for you: Function CleanText(Text As String) As String Dim NewText As String, Character As String * 1, Position As Long For Position = 1 To Len(Text) Character = Mid(Text, Position, 1) If Character Like [A-z] Or Character Like # Then NewText = NewText Character End If Next Position CleanText = NewText End Function You can use this as a UDF in a worksheet formula or call it from other macros. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of sonal gupta Sent: Monday, June 04, 2012 8:15 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Text Cleaning Hi, This is my first post in this group.I have learnt many things from this group.I'm finding difficulty in cleaning the range in which each cell has string like rahul;6e3-.I need a macro which will clean the special characters,spaces numbers leave the alphabets only. Thanks in advance. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Text Cleaning
I re-read your query and I see you only wanted alphabet characters. I had this include numbers as well. for just alphabetical characters A-Z and a-z, here is the correction: Function CleanText(Text As String) As String Dim NewText As String, Character As String * 1, Position As Long For Position = 1 To Len(Text) Character = Mid(Text, Position, 1) If Character Like [A-z] Then NewText = NewText Character End If Next Position CleanText = NewText End Function By the way, welcome to the group! Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Monday, June 04, 2012 8:38 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Text Cleaning Hi Sonal, Another function for you: Function CleanText(Text As String) As String Dim NewText As String, Character As String * 1, Position As Long For Position = 1 To Len(Text) Character = Mid(Text, Position, 1) If Character Like [A-z] Or Character Like # Then NewText = NewText Character End If Next Position CleanText = NewText End Function You can use this as a UDF in a worksheet formula or call it from other macros. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of sonal gupta Sent: Monday, June 04, 2012 8:15 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Text Cleaning Hi, This is my first post in this group.I have learnt many things from this group.I'm finding difficulty in cleaning the range in which each cell has string like rahul;6e3-.I need a macro which will clean the special characters,spaces numbers leave the alphabets only. Thanks in advance. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Lookup and return 2nd occurrance
Hi Hilary, INDEX(NamesRange,1) returns the first row of the range (which is a single cell since the range is only one column wide). Put that inside a ROW() function and you get the first row number. Equally effective would be specifying the first cell in NamesRange instead: ROW(FirstCellInNamesRange) For example, if NamesRange is $A$2:$A$13: INDEX(NamesRange,1) is $A$2 ROW(Index(NamesRange,1)) is ROW($A$2) which is 2. You might be confused if you think INDEX returns the value of a cell. If INDEX(NamesRange,1) refers to $A$2 and cell A2 contains Hilary, then you might expect ROW(INDEX(NamesRange,1)) to be equivalent to ROW(Hilary). which clearly would not work. The reason ROW(INDEX(NamesRange,1)) is equivalent to ROW($A$2) instead is because INDEX is one of the three main functions that can return cell references, and can be used in place of cell references anywhere cell references are expected (the other two are OFFSET and INDIRECT). In a formula result, a cell reference is displayed on the worksheet by the value of the referenced cells, so the end result is sometimes the same. The reason I used Row(Index(NamesRange,1)) in the formula instead of Row($A$2) or Row(FirstCellInNamesRange) was primarily that it would allow you to use defined names for your ranges without any changes to the formula, or a redundant defined name to refer to the first cell/first row in NamesRange. No, I'm not a lectururer. I like teaching (informally), and I like words, though. I take it as a complement that you might think so, thanks :). I'm impressed with your dashboards and workbooks that I've seen so far. I only wish I was involved in finance -- I'd ask to use them myself. Two of my previously suggested formulas, with range references substituted for range names: 1. Standard formula (faster than the array formula, also it will work with wildcards): =INDEX($B$2:$B$13,MATCH($A$17,$A$2:$A$13,0)+MATCH($A$17,INDEX($A$2:$A$13,MAT CH($A$17,$A$2:$A$13,0)+1):INDEX($A$2:$A$13,ROWS($A$2:$A$13)),0)) 2. Array formula: =INDEX($B$2:$B$13,SMALL(IF($A$2:$A$13=$A$17,ROW($A$2:$A$13)),2)-ROW($A$2)+1) Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of hilary lomotey Sent: Friday, June 01, 2012 1:34 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Lookup and return 2nd occurrance Hi Asa Your formula is working to perfection, thanks a lot, just two quick questions Kindly explain this bit of the formula taking out ROW(INDEX(NamesRange,1) from the entire formula Are a Lecturer or some sort?, i always look at the way you explain every problem that you tackle, its like a lecturer, thanks On Fri, Jun 1, 2012 at 8:21 AM, hilary lomotey resp...@gmail.com wrote: Thanks Asa Attached is what i attempted doing, but after testing my formula this morning with other examples i realised, its doesnt work for all, i will try your now. thanks On Fri, Jun 1, 2012 at 1:06 AM, Asa Rossoff a...@lovetour.info wrote: Hi Hilary, Mind sharing your solution with the group? What came to mind for me was an array solution that uses small/row to identify the second smallest row number for the matching name, and index to retrieve the reference to the cell. Here's a formula using that approach: { =INDEX(NamesRange,SMALL(IF(NamesRange=NameToFind,ROW(NamesRange)),OccurenceN umber)-ROW(INDEX(NamesRange,1))+1) } If you were going to use many of these formulas, NamesRange was large, and often there was not going to be a match (for example there was only one occurrence and you were looking for the second), you could speed up the formulas by use the following version that checks the count (using countif) of matching names, and if the count is OccurenceNumber (2 in your stated question) it will skip the array formula and just return an error. If there will usually be a match, this would actually be slower since it has the added countif. { =IF(COUNTIF(NamesRange,NameToFind)OccurenceNumber,#NUM!,INDEX(NamesRange,SM ALL(IF(NamesRange=NameToFind,ROW(NamesRange)),OccurenceNumber)-ROW(INDEX(Nam esRange,1))+1)) } Upon a little more thought, here is a non-array solution for finding exactly the 2nd occurrence (the array version would work for finding any specific occurrence). It uses match to find the first occurrence, then another match to find the next occurrence. It should be faster---it has less work to do. If there is no match it either returns an NA error or if the only match was on the very last row of the range, a REF error. =INDEX(NamesRange,MATCH(NameToFind,NamesRange,0)+MATCH(NameToFind,INDEX(Name sRange,MATCH(NameToFind,NamesRange,0)+1):INDEX(NamesRange,ROWS(NamesRange)), 0)) Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of resp...@gmail.com Sent: Thursday, May 31, 2012 2:01 PM To: excel-macros@googlegroups.com Subject
RE: $$Excel-Macros$$ Rajan Verma - Most helpful Member(May'12)
Congratulations Rajan! Outstanding work. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Ayush Jain Sent: Sunday, June 03, 2012 10:43 AM To: excel-macros Subject: $$Excel-Macros$$ Rajan Verma - Most helpful Member(May'12) Hello Everyone, Rajan Verma has been selected as 'Most Helpful Member' for the month of May'2012 He has posted 147 posts in May 2012 and helped many people through his expertise. I truly appreciate his consistency and commitment to group. He is really doing great job God bless you :) Thanks to Noorain, Don, Asa, Maries, and other folks for helping excel enthusiasts voluntarily !! Keep it up !! Trust me, It requires big heart to help others voluntarily and thanks to everyone who is supporting this forum. Keep posting. Regards Ayush Jain Group Manager Microsoft MVP -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Lookup and return 2nd occurrance
Ah, I didn't realize what you had done in the sample file. You looked up the last occurrence.. Yes. My formula could be reduced to INDEX(what,SMALL(matching ROW,occurrence#)). but if you want the last occurrence, it's better to use INDEX(what,MAX(matching ROW)) .. maybe Rajan posted that suggestion, actually. =INDEX($B$2:$B$13,MAX(IF(names=$A$17,ROW(names)))-ROW(INDEX(names,1))+1) Simplified: =INDEX($B$2:$B$13,MAX(IF(names=$A$17,ROW(names)))-ROW($A$2)+1) In instances where the names range will definitely start on row 2, you can use: =INDEX($B$2:$B$13,MAX(IF(names=$A$17,ROW(names)))-1) If you wanted the second to last match, you should still not use COUNTIF in this formula. In that case, you could substitute LARGE for SMALL: =INDEX($B$2:$B$13,LARGE(IF(names=$A$17,ROW(names)),2)-1) CSE all. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of resp...@gmail.com Sent: Sunday, June 03, 2012 4:23 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Lookup and return 2nd occurrance Thanks for the explanation. What I like abt this formula is it actually picks not only the 2nd occurance but the last occurance which I think might be useful going forward. Thanks again Sent from my BlackBerryR smartphone from Airtel Ghana _ From: Asa Rossoff a...@lovetour.info Sender: excel-macros@googlegroups.com Date: Sun, 3 Jun 2012 02:42:58 -0700 To: excel-macros@googlegroups.com ReplyTo: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Lookup and return 2nd occurrance Hi Hilary, INDEX(NamesRange,1) returns the first row of the range (which is a single cell since the range is only one column wide). Put that inside a ROW() function and you get the first row number. Equally effective would be specifying the first cell in NamesRange instead: ROW(FirstCellInNamesRange) For example, if NamesRange is $A$2:$A$13: INDEX(NamesRange,1) is $A$2 ROW(Index(NamesRange,1)) is ROW($A$2) which is 2. You might be confused if you think INDEX returns the value of a cell. If INDEX(NamesRange,1) refers to $A$2 and cell A2 contains Hilary, then you might expect ROW(INDEX(NamesRange,1)) to be equivalent to ROW(Hilary). which clearly would not work. The reason ROW(INDEX(NamesRange,1)) is equivalent to ROW($A$2) instead is because INDEX is one of the three main functions that can return cell references, and can be used in place of cell references anywhere cell references are expected (the other two are OFFSET and INDIRECT). In a formula result, a cell reference is displayed on the worksheet by the value of the referenced cells, so the end result is sometimes the same. The reason I used Row(Index(NamesRange,1)) in the formula instead of Row($A$2) or Row(FirstCellInNamesRange) was primarily that it would allow you to use defined names for your ranges without any changes to the formula, or a redundant defined name to refer to the first cell/first row in NamesRange. No, I'm not a lectururer. I like teaching (informally), and I like words, though. I take it as a complement that you might think so, thanks :). I'm impressed with your dashboards and workbooks that I've seen so far. I only wish I was involved in finance -- I'd ask to use them myself. Two of my previously suggested formulas, with range references substituted for range names: 1. Standard formula (faster than the array formula, also it will work with wildcards): =INDEX($B$2:$B$13,MATCH($A$17,$A$2:$A$13,0)+MATCH($A$17,INDEX($A$2:$A$13,MAT CH($A$17,$A$2:$A$13,0)+1):INDEX($A$2:$A$13,ROWS($A$2:$A$13)),0)) 2. Array formula: =INDEX($B$2:$B$13,SMALL(IF($A$2:$A$13=$A$17,ROW($A$2:$A$13)),2)-ROW($A$2)+1) Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of hilary lomotey Sent: Friday, June 01, 2012 1:34 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Lookup and return 2nd occurrance Hi Asa Your formula is working to perfection, thanks a lot, just two quick questions Kindly explain this bit of the formula taking out ROW(INDEX(NamesRange,1) from the entire formula Are a Lecturer or some sort?, i always look at the way you explain every problem that you tackle, its like a lecturer, thanks On Fri, Jun 1, 2012 at 8:21 AM, hilary lomotey resp...@gmail.com wrote: Thanks Asa Attached is what i attempted doing, but after testing my formula this morning with other examples i realised, its doesnt work for all, i will try your now. thanks On Fri, Jun 1, 2012 at 1:06 AM, Asa Rossoff a...@lovetour.info wrote: Hi Hilary, Mind sharing your solution with the group? What came to mind for me was an array solution that uses small/row to identify the second smallest row number for the matching name, and index to retrieve the reference to the cell. Here's a formula using that approach: { =INDEX(NamesRange,SMALL(IF(NamesRange=NameToFind,ROW(NamesRange
RE: $$Excel-Macros$$ Creating links to workbooks in folder using VBA
Hello Hugo, Please post your current macro and we can most easily give you your desired update to it. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of hugo.ph...@gmail.com Sent: Sunday, June 03, 2012 2:24 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Creating links to workbooks in folder using VBA Dear Members I have a number of excel workbooks in a folder. I need to be able to have Excel check for the existance of Excel workbooks in the folder. Then using vba, write an automatic link formula from the contents of cells C1 to C20 in the files. The link formula will appear in a master workbook that links to all of the files in the folder. The number of files will vary from ten to thirty files. The link formula in the master file will commence in cell address c1 and then appear in columns D, E, F etc. I have been able to generate a link formula if I use specific filenames but if the files do not exist the code generates an error. Any assistance would be greatly appreciated. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Require Business related PPT presentation template.....
Hi Indrajit, You could try searching @ Office.com; for example: http://office.microsoft.com/en-us/templates/results.aspx?qu=business http://office.microsoft.com/en-us/templates/results.aspx?qu=businessex=1a v=zpp ex=1av=zpp Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Indrajit $nai Sent: Thursday, May 31, 2012 7:08 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Require Business related PPT presentation template. Hi All, Can anyone share some Business related PPT presentation template!!! Thanks in advance. -- Indrajit Disclaimer: This electronic message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
Free Ebooks (RE: $$Excel-Macros$$ MACRO)
I haven't said anything in the past, thinking it may just be a culture difference -- But now I will offer my opinion: I too am against sharing pirated material. I have seen apparently pirated ebooks posted, linked to, or offered on this list many times. I have also seen copy-paste responses to queries with the work of other authors with no credit given. Most list members, I suspect, use or study Excel for professional reasons, and fostering respect for the professional work of others comes back around -- we all benefit from not stealing from each other. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Ayush Jain Sent: Thursday, May 31, 2012 7:55 AM To: excel-macros@googlegroups.com Cc: NOORAIN ANSARI Subject: Re: $$Excel-Macros$$ MACRO Hello everyone, I hope the book which is being shared in this thread is free ebook and not the paid one. I am strongly against sharing pirated copies without the consent of author. Let me know if you have any queries. Thanks. Regards Ayush Jain Group Manager Microsoft MVP On Thursday, 31 May 2012 19:59:26 UTC+5:30, Bullet wrote: Dear Noorian, Can you please send me those ebooks to my mail id: talk2indra...@gmail.com Thanks in advance. On Thu, May 31, 2012 at 4:44 PM, Prakash Paul jprakashp...@gmail.com wrote: Dear Noorian, Please send the 2007 file to jprakashp...@gmail.com. Thanks in advance Regards Paul -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com mailto:excel-macros%2bunsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Lookup and return 2nd occurrance
Hi Hilary, Mind sharing your solution with the group? What came to mind for me was an array solution that uses small/row to identify the second smallest row number for the matching name, and index to retrieve the reference to the cell. Here's a formula using that approach: { =INDEX(NamesRange,SMALL(IF(NamesRange=NameToFind,ROW(NamesRange)),OccurenceN umber)-ROW(INDEX(NamesRange,1))+1) } If you were going to use many of these formulas, NamesRange was large, and often there was not going to be a match (for example there was only one occurrence and you were looking for the second), you could speed up the formulas by use the following version that checks the count (using countif) of matching names, and if the count is OccurenceNumber (2 in your stated question) it will skip the array formula and just return an error. If there will usually be a match, this would actually be slower since it has the added countif. { =IF(COUNTIF(NamesRange,NameToFind)OccurenceNumber,#NUM!,INDEX(NamesRange,SM ALL(IF(NamesRange=NameToFind,ROW(NamesRange)),OccurenceNumber)-ROW(INDEX(Nam esRange,1))+1)) } Upon a little more thought, here is a non-array solution for finding exactly the 2nd occurrence (the array version would work for finding any specific occurrence). It uses match to find the first occurrence, then another match to find the next occurrence. It should be faster---it has less work to do. If there is no match it either returns an NA error or if the only match was on the very last row of the range, a REF error. =INDEX(NamesRange,MATCH(NameToFind,NamesRange,0)+MATCH(NameToFind,INDEX(Name sRange,MATCH(NameToFind,NamesRange,0)+1):INDEX(NamesRange,ROWS(NamesRange)), 0)) Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of resp...@gmail.com Sent: Thursday, May 31, 2012 2:01 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Lookup and return 2nd occurrance Thanks guys I have figured it out with index and match and countif. Thanks Sent from my BlackBerryR smartphone from Airtel Ghana -Original Message- From: mailto:resp...@gmail.com resp...@gmail.com Sender: mailto:excel-macros@googlegroups.com excel-macros@googlegroups.com Date: Thu, 31 May 2012 19:42:32 To: mailto:excel-macros@googlegroups.com excel-macros@googlegroups.com Reply-To: mailto:excel-macros@googlegroups.com excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Lookup and return 2nd occurrance Hello Excel Masters if I have a list if names like below in column A and say I have corresponding different figures in column B. Hilary Rajan Maries Noorain Hilary Rajan Don Kris Asa And so on and I want to return for instance the second occurance of hilary with its corresponding figure. Kindly help with formula. Thanks. Sent from my BlackBerryR smartphone from Airtel Ghana -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to mailto:excel-macros@googlegroups.com excel-macros@googlegroups.com To unsubscribe, send a blank email to mailto:excel-macros+unsubscr...@googlegroups.com excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to mailto:excel-macros@googlegroups.com excel-macros@googlegroups.com To unsubscribe, send a blank email to mailto:excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ can we round figer any amount.
Hi Anil, To get the exact results you indicated (10% of rounding up to next 100,000), you can use any one of these formulas: =ROUNDUP(A2,-5)/10 =ROUNDUP(A2/10,-4) =(INT(A2/10)+(A2/10INT(A2/10)))*1 The ROUNDUP formulas will work with positive or negative numbers, but if you will be working with negative numbers, verify that the rounding behavior is as desired (ROUNDUP rounds away from zero rather than up). The INT formula as written always rounds up (positives away from zero, negatives towards zero). Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of anil kumar Sent: Wednesday, May 30, 2012 4:27 AM To: excel-macros Subject: $$Excel-Macros$$ can we round figer any amount. Hello everybody, I have a queary. can we round figer any amount. exp. Amount Round figer 975567.6510.00 732530.608.00 595328.81 457717.00 405543.09 323739.86 317619.89 317311.64 290630.55 270986.07 Regards Anil -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to mailto:excel-macros@googlegroups.com excel-macros@googlegroups.com To unsubscribe, send a blank email to mailto:excel-macros+unsubscr...@googlegroups.com excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ How to collect only numeric value from a particular cell
Lakshman ( Deba ) - Rajan posted an excellent formula for extracting all the numbers already. Make sure to enter his formula with ctrl-shift-enter (it's an array formula). It is for Excel 2007+ only because it uses the IFERROR function. Here is a version modified slightly to work in older Excel versions too: =IF(ISERROR(MATCH(TRUE,ISNUMBER(INT(MID(A1,ROW(INDIRECT(1:LEN(A1))),1))), 0)),,SUM(INT(MID(A1,LARGE(--ISNUMBER(INT(MID(A1,ROW(INDIRECT(1:LEN(A1)) ),1)))*ROW(INDIRECT(1:LEN(A1))),ROW(INDIRECT(1:SUM(--ISNUMBER(INT(MID( A1,ROW(INDIRECT(1:LEN(A1))),1))),1)*10^ROW(INDIRECT(1:SUM(--ISNUMB ER(INT(MID(A1,ROW(INDIRECT(1:LEN(A1))),1/10) Use Ctrl-Shift-Enter to confirm entry. A formula for extracting text only is more problematic. To my knowledge, it is not possible to extract all text and return a single value using a formula alone, but a formula could extract the first piece of text, or an array containing all of the text values. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of LAKSHMAN PRASAD Sent: Monday, May 28, 2012 11:49 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ How to collect only numeric value from a particular cell Dear Noorain, Your macro is working, but if there is any formula for this.? And one thing more i think under formula is not working properly which was post by buddy(MR. RAJAN) IFERROR(SUM(INT(MID(A1,LARGE(--ISNUMBER(INT(MID(A1,ROW(INDIRECT(1:LEN(A1) )),1)))*ROW(INDIRECT(1:LEN(A1))),ROW(INDIRECT(1:SUM(--ISNUMBER(INT(MID (A1,ROW(INDIRECT(1:LEN(A1))),1))),1)*10^ROW(INDIRECT(1:SUM(--ISNUM BER(INT(MID(A1,ROW(INDIRECT(1:LEN(A1))),1/10,) Thanks Noorain LAKSHMAN From: NOORAIN ANSARI noorain.ans...@gmail.com To: excel-macros@googlegroups.com Sent: Tuesday, May 29, 2012 11:57 AM Subject: Re: $$Excel-Macros$$ How to collect only numeric value from a particular cell Dear Lakshman,Please see attached sheet, It is working fine..Let's know where are you facing problem.-- Thanks regards, Noorain Ansari www.noorainansari.com http://www.noorainansari.com/ http://www.excelmacroworld.blogspot.com/ www.excelmacroworld.blogspot.com On Tue, May 29, 2012 at 11:44 AM, LAKSHMAN PRASAD lakshman_...@yahoo.com wrote: Hello champ., This formula is picking up only first disit of cell only. 1001GANG 1 1002COL. 1 1002TEJI 1 1003SUDH 1 Regards LAKSHMAN From: Rajan_Verma rajanverma1...@gmail.com To: excel-macros@googlegroups.com Sent: Monday, May 28, 2012 7:12 PM Subject: RE: $$Excel-Macros$$ How to collect only numeric value from a particular cell Hi, If your data in Alphanumeric value in A1 then use it in B1 =IFERROR(SUM(INT(MID(A1,LARGE(--ISNUMBER(INT(MID(A1,ROW(INDIRECT(1:LEN(A1 ))),1)))*ROW(INDIRECT(1:LEN(A1))),ROW(INDIRECT(1:SUM(--ISNUMBER(INT(MI D(A1,ROW(INDIRECT(1:LEN(A1))),1))),1)*10^ROW(INDIRECT(1:SUM(--ISNU MBER(INT(MID(A1,ROW(INDIRECT(1:LEN(A1))),1/10,) Regards Rajan verma +91 7838100659 [IM-Gtalk] From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of vishal angre Sent: 28 May 2012 4:52 To: excel-macros@googlegroups.com Cc: noorain.ans...@gmail.com Subject: Re: $$Excel-Macros$$ How to collect only numeric value from a particular cell Function removetext(c As String)Dim String1 As StringDim i As Integer String1 = For i = 1 To Len(c)If IsNumeric(Mid(c, i, 1)) ThenString1 = String1 Mid(c, i, 1)End IfNext removetext = String1 End Function On Mon, May 28, 2012 at 4:30 PM, LAKSHMAN PRASAD lakshman_...@yahoo.com wrote: How to collect only numeric value from a particular cell 1462NIRM 1462 1464NIRM 1464 1465NIRM 1465 1404--BL 1404 1031Infr 1031 8020LOKN 8020 202D.B. 202 922Parmi 922 5071RIFA 5071 1040Harj 1040 5078Harj 5078 1471Raj 1471 1571Raj 1571 414Ruchi 414 2084AJAY 2084 Regards LAKSHMAN -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. --To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to
RE: $$Excel-Macros$$ SOAP and VBA
Hi Rocky, For Office XP and 2003 there was something called the Web Services Toolkit that provided a a library for this purpose. This is an unsupported method, and may always have been unsupported. The supported method is to use .NET Ofiice Interop and code your solution in Visual Studio. Here are the instructions (this link for Excel 2007): http://msdn.microsoft.com/en-us/library/dd819156%28v=office.12%29.aspx Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of RockyFontane Sent: Friday, May 25, 2012 3:34 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ SOAP and VBA Excel Guru's I have a hosted CRM that gives me access to their API for reporting purposes. Specifically, they allow me to create a custom report in their system and they have a GetReportResults operation in their API. Pardon my ignorance, but how can I call that API an dump the results in Excel? I attached a copy of the API, but I don't know how to use Excel to call the dataset. Does anyone know how to do that? All the best! -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
RE: $$Excel-Macros$$ Convert amount to Million
Hi Aamir, How about this: Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False MacroMillion Target Application.EnableEvents = True End Sub Private Sub MacroMillion(ByRef Target As Range) Const M As Double = 100 Const EvalMethodMinCellThreshold As Long = 50 Const Formula As String = IF(RIGHT(_,1)=M,IF(ISNUMBER(--LEFT(_,LEN(_)-1)),LEFT(_,LEN(_)-1)* M ,_),_) Dim WS As Worksheet, TextRange As Range, Area As Range, Cell As Range Dim V As Variant, N As String, ScreenState As Boolean, ScreenStateTouched As Boolean On Error Resume Next Set TextRange = Target.SpecialCells(xlCellTypeConstants, xlTextValues) On Error GoTo 0 If Not TextRange Is Nothing Then If TextRange.Cells.Count 1 Then ScreenState = Application.ScreenUpdating If ScreenState Then Application.ScreenUpdating = False ScreenStateTouched = True End If End If Set WS = Target.Parent For Each Area In TextRange.Areas If Area.Cells.Count = EvalMethodMinCellThreshold Then Area.Value2 = WS.Evaluate(Replace(Formula, _, Area.Address)) Else For Each Cell In Area V = Cell.Value2 If UCase$(Right$(V, 1)) = M Then N = Left$(V, Len(V) - 1) If IsNumeric(N) Then Cell.Value2 = N * M End If End If Next Cell End If Next Area If ScreenStateTouched Then If Application.ScreenUpdating ScreenState Then Application.ScreenUpdating = ScreenState End If End If End If End Sub The routine implements two different methods of transforming cell values ending in M to millions. One method loops through pertinent cells using traditional VBA functions. The other uses the Worksheet.Evaluate method to update cell values that may need to be transformed using a worksheet formula. The constant EvalMethodMinCellThreshold determines which method will be used. If the number of cells changed at one time is at least EvalMethodMinCellThreshold, then the Worksheet.Evaluate method is used. For smaller numbers of cells, traditional VBA techniques are used. I supplied a value of 50 to EvalMethodMinCellThreshold because that seemed to be roughly the number of cells at which the Worksheet.Evaluate method was fastest on my system (feel free to experiment, or even set to 1 to see what happens if that method is always used). Worksheet.Evaluate is very fast once it gets going, but it has significant overhead for each call. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Aamir Shahzad Sent: Saturday, May 19, 2012 10:39 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Convert amount to Million For example I insert the column in sheet it's taking too much time when running this code otherwise inserting the column is too fast. Therefore I ask you people for look amend for this code. Regards, Aamir Shahzad On Sat, May 19, 2012 at 6:37 PM, Rajan_Verma rajanverma1...@gmail.com wrote: Can you make it more clear?? Regards Rajan verma +91 7838100659 tel:%2B91%207838100659 [IM-Gtalk] From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of dguillett1 Sent: 19 May 2012 6:52 To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Convert amount to Million ?? Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Aamir Shahzad mailto:aamirshahza...@gmail.com Sent: Saturday, May 19, 2012 7:52 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Convert amount to Million Dear Group, Following macro is working fine but when run this code, Insert of column process is too much slow, please see amend. Private Sub Worksheet_Change(ByVal Target As Range) Dim rngCell As Range For Each rngCell In Target If Right(UCase(Trim(rngCell.Text)), 1) = M Then rngCell.Value = Replace(UCase(Trim(rngCell.Text)), M, ) * 10 ^ 6 End If Next End Sub -- Regards, Aamir Shahzad -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and
RE: $$Excel-Macros$$ Row to repeat at the bottom of each page
Very good, glad that was what you needed. :) Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Siraj Momin (BTG) Sent: Saturday, May 19, 2012 7:58 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Row to repeat at the bottom of each page Hi Asa Yes I did the same, I copied the content in paint saved as a bmp file and attached in the footer and its working fine thanks Siraj From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Friday, May 18, 2012 12:19 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Row to repeat at the bottom of each page Siraj, I think this would be possible using an image in your footer. If the text/borders won't change very often, you could do a screen capture. Then in your footer use the option to insert the picture. To automate updating of the footer with an image of the range would appear to require use of an image file on disk, too. I'll try to play with it if it is worth it to you to put up with the Excel file creating a temporary file on the hard drive when the user goes to print. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Siraj Momin (BTG) Sent: Thursday, May 17, 2012 9:34 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Row to repeat at the bottom of each page Hi Asa Rossoff Thank You for your advice, actually the problem is it is an small box with border are there which I want to repeat at bottom and in page footer this border option is not there, marries on this group provided me the macro to repeat particular rows at the bottom but the borders are not appearing. Anyway thanks for your advice Siraj From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Friday, May 18, 2012 12:37 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Row to repeat at the bottom of each page Hi Siraj, I do not think so. Not automatically. You would have to have the rows repeated on your worksheet at appropraite places, or use a macro to temporarily insert those rows, print the sheet, and then remove them again. The most common solution, I think, is to use the page footer instead of repeated rows. If possible, I recommend you do this. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Siraj Momin (BTG) Sent: Wednesday, May 16, 2012 10:47 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Row to repeat at the bottom of each page Dear Excel Group Friends Is there any way that certain rows of a sheet is repeated at the bottom of each page.. Siraj -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad
RE: $$Excel-Macros$$ Row to repeat at the bottom of each page
Siraj, I think this would be possible using an image in your footer. If the text/borders won't change very often, you could do a screen capture. Then in your footer use the option to insert the picture. To automate updating of the footer with an image of the range would appear to require use of an image file on disk, too. I'll try to play with it if it is worth it to you to put up with the Excel file creating a temporary file on the hard drive when the user goes to print. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Siraj Momin (BTG) Sent: Thursday, May 17, 2012 9:34 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Row to repeat at the bottom of each page Hi Asa Rossoff Thank You for your advice, actually the problem is it is an small box with border are there which I want to repeat at bottom and in page footer this border option is not there, marries on this group provided me the macro to repeat particular rows at the bottom but the borders are not appearing. Anyway thanks for your advice Siraj From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Friday, May 18, 2012 12:37 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Row to repeat at the bottom of each page Hi Siraj, I do not think so. Not automatically. You would have to have the rows repeated on your worksheet at appropraite places, or use a macro to temporarily insert those rows, print the sheet, and then remove them again. The most common solution, I think, is to use the page footer instead of repeated rows. If possible, I recommend you do this. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Siraj Momin (BTG) Sent: Wednesday, May 16, 2012 10:47 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Row to repeat at the bottom of each page Dear Excel Group Friends Is there any way that certain rows of a sheet is repeated at the bottom of each page.. Siraj -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question
RE: $$Excel-Macros$$ Row to repeat at the bottom of each page
Hi Siraj, I do not think so. Not automatically. You would have to have the rows repeated on your worksheet at appropraite places, or use a macro to temporarily insert those rows, print the sheet, and then remove them again. The most common solution, I think, is to use the page footer instead of repeated rows. If possible, I recommend you do this. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Siraj Momin (BTG) Sent: Wednesday, May 16, 2012 10:47 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Row to repeat at the bottom of each page Dear Excel Group Friends Is there any way that certain rows of a sheet is repeated at the bottom of each page.. Siraj -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Link Check Box many times
Hi Hilary, You could use a character with a check box, and a Worksheet.Click event to place and remove the checks. You can use the Windows Character Map utility (charmap.exe) to browse your fonts. Unicode includes a Ballot Box character (☐), Ballot Box with Check (☑) and Ballot Box with X (☒). If you browse the Symbols and Dingbats Unicode subrange you can find these and similar symbols. You can also do the same with a symbol font, even non-Unicode, such as Wingdings. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of hilary lomotey Sent: Wednesday, May 16, 2012 7:06 AM To: excel-macros Subject: $$Excel-Macros$$ Link Check Box many times Hello Gurus, i am trying to create a call report in the format attached. i however need to replicate the format like 2000 times, i can simply drag down the format to the number of rows i want however, i need to link these check boxes to the and i dont think doing it one by one is very helpful, is there a simple way to achieve this. thanks -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Formula for discount of third item bought by a customer
I sent this out late in the evening, and it seems a problem slipped past my quality control. last minute updates to the formulas messed something up, so please be aware the results are a bit incorrect. I will fix it when I get a chance and repost. It should be in the next couple days. Asa From: Asa Rossoff [mailto:a...@lovetour.info] Sent: Tuesday, May 15, 2012 3:19 AM To: 'excel-macros@googlegroups.com' Subject: RE: $$Excel-Macros$$ Formula for discount of third item bought by a customer Hi Robinson, To my way of looking at it, the problem is rather complicated, particularly since the invoice does not have a separate row for each individual item (but rather multiple quantities per row). For me the simplest way to try to solve the problem would be to use a VBA macro, but as a challenge, I decided to try to solve your query using formulas. I took the liberty of further complicating the problem by assuming it might be possible for zero or negative quantities to appear on the invoice, and if they do, that no discounts should be applied to them. I worked up a solution file for you. I rely heavily on Defined Names (named formulas). Only one named formula need be referenced from the worksheet, and the formula is called Discount. It goes in a column on the invoice. That one named formula refers to other named formulas in order to break the calculation into interim steps. This greatly simplifies the calculation, making it easier to understand, easier to update in the future if need be, and also allows Excel to optimize how it solves the calculation, making it more efficient. If the named formulas were expanded out onto the worksheet, the result would be a formula of well over 2,000 characters long on each row of the invoic. Rather daunting to maintain. Another thing I did as part of my solution was to convert your invoice table range into an Excel Table (called a List in older Excel versions). This automatically creates a dynamically expanding/contracting named range for the invoice, should the number of rows change. It also allows the use of structured references, a fairly simple way of referring to columns of the table (and other parts of the table, like the header row) by name. Those ranges are all dynamic in size as the size of the Table changes, and as with names in general, formulas containing them are easier to read than formulas containing traditional range references. The first row of the worksheet has an input parameter cell where you can change the number of items per discount group, if desired. The formula as designed has a few, probably minor, limitations: .the maximum of all quantities combined is equal to the number of rows that exist on the worksheet (In Excel 2007+, over 1 million); .if you use extremely small fractional quantities, especially on an invoice that includes rows with zero and negative quantities, and has a huge number of lines on the invoice, it could cause some discounts to be applied to the wrong lines or items. someday if Excel supports 9,999,999 rows and your total of all quantities surpasses that number, the issue would get compounded (the basic rule for absolute safety is, I think: Take the number of decimal points to the right of the decimal point in your smallest quantity, add that to the number of digits in one less than the number of rows on your invoice, and subtract one. If the result is no more than 8, you're safe. With 100 rows on your invoice, for example, this safely permits quantities as small as 0.01. .you can only have a whole number of items per discount group (no applying a discount to every 1.5 items). Hope this resolves your query. Please let me know what you think and if this was helpful. If anyone else has has any ideas on how to simplify or improve the calculation, I'm interested. File attached, or download @ https://docs.google.com/open?id=1A1SfcsfXsS7VJq7Rs7pZD16nWVYaHxb3JCS2xKyvf54 (FileDownload). Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Robinson Boreh Sent: Tuesday, May 08, 2012 7:52 AM To: Robinson Boreh; excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Formula for discount of third item bought by a customer Hi, Please help Sent from my Windows Phone -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Robinson Boreh Sent: Sunday, May 06, 2012 7:27 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Formula for discount of third item bought by a customer Thanks. The logic is for every three items, the third is free nd the free should be the lowest price. The items should be arranged in order they are bought in batches of three. See attached On 6 May 2012 16:39, dguillett1 dguille...@gmail.com wrote: A VERY simple formula for the 1st question. =LARGE($d$2:$c$4,1)+LARGE
RE: $$Excel-Macros$$ Need help-- Related to UDF
I had a typo in the Const line.. I seem to be getting sloppy lately! Here the function is, corrected: Function LookupSomething(LookupValue, TableArray) Const ColIndex = 3, RangeLookup = True LookupSomething = WorksheetFunction.VLookup(LookupValue, TableArray, ColIndex, RangeLookup) End Function Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Monday, May 14, 2012 12:41 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Need help-- Related to UDF Hello Amol, Sounds like you are asking for something like this: Function LookupSomething(LookupValue, TableArray) Const ColIndex 3, RangeLookup = True LookupSomething = WorksheetFunction.VLookup(LookupValue, TableArray, ColIndex, RangeLookup) End Function Modify the Const line for the VLOOKUP presets that you want. If desired, you can create defined names for all your TableArray ranges in the other workbook, and then the function could be called like this: =LookupSomething($C2,Where) Where Where can be the defined name. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Amol Jadhav Sent: Monday, May 14, 2012 6:42 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Need help-- Related to UDF Hi Experts, I need your help to create UDF I want to create udf which will work as same as vlookup. Here my lookup value will be from column C for ex. $C2, my table array range will be from different workbook called export ,my column index no also fixed i.e 3. So my lookup value is fixed column, my table array range -- my table array range may vary so it must be dynamic and my column index no also fixed I know vlook up function and its works fine for me. but issue is I have team of 30 member they don't know anything about excel. So it will be great help for me. so I will just put my udf and drag it and I will get output from export sheet -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Re: Printing sheets in colour using VBA in ecel
Sunny, when you say manually print in color how do you do that? Do you click on Printer Settings or Page Setup to select that option? Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Sunny Kapoor Sent: Monday, May 14, 2012 12:55 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Printing sheets in colour using VBA in ecel Hmm, Well, do you think of something thats avoiding the macro from printing in colour?? Sunny On Mon, May 14, 2012 at 9:53 PM, dguillett1 dguille...@gmail.com wrote: My ans was based on what you sent Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Sunny Kapoor mailto:sunnykapo...@gmail.com Sent: Monday, May 14, 2012 2:38 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Printing sheets in colour using VBA in ecel well, Thanks for your reply. However, the file is quite big with more than 25 sheets. I sent one sheet to give an example. Now, the file will be used by many people but everyone would be interested in different sheets. The problem i am facing currently, like you must have seen is, the macro prints only black and white but manually you can print in colour, I would like the macro to print in colour ... Please see if you could help :) Thanks again, Sunny On Mon, May 14, 2012 at 9:34 PM, dguillett1 dguille...@gmail.com wrote: Based on the file you sent me with ONE sheet with graphs the easiest way would be to set up an additional printer with ONLY grayscale and call it bw or whatever and then print to that printer for bw and the other for color. Application.Dialogs(xlDialogPrinterSetup).Show Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Sunny Kapoor mailto:sunnykapo...@gmail.com Sent: Monday, May 14, 2012 11:02 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: Printing sheets in colour using VBA in ecel Hi, I have attached the file...Please let me know what should i do... Thanks in advance, Sunny On Monday, 14 May 2012 16:56:25 UTC+2, Sunny Kapoor wrote: Hi Guys, I am trting to print sheets in colour using VBA. I am using the following code... Sub Print_sheet() With ActiveSheet .PageSetup.BlackAndWhite = False .PrintOut Copies:=1, Collate:=True End With End Sub __ I have put Buttons on each sheet and assigned this macro to every button. The problem is that for some sheets, the macro prints the sheets in colour while for some others, it prints them in Black White. Ant help would be appreciated... Cheers, Sunny On Monday, 14 May 2012 16:56:25 UTC+2, Sunny Kapoor wrote: Hi Guys, I am trting to print sheets in colour using VBA. I am using the following code... Sub Print_sheet() With ActiveSheet .PageSetup.BlackAndWhite = False .PrintOut Copies:=1, Collate:=True End With End Sub __ I have put Buttons on each sheet and assigned this macro to every button. The problem is that for some sheets, the macro prints the sheets in colour while for some others, it prints them in Black White. Ant help would be appreciated... Cheers, Sunny On Monday, 14 May 2012 16:56:25 UTC+2, Sunny Kapoor wrote: Hi Guys, I am trting to print sheets in colour using VBA. I am using the following code... Sub Print_sheet() With ActiveSheet .PageSetup.BlackAndWhite = False .PrintOut Copies:=1, Collate:=True End With End Sub __ I have put Buttons on each sheet and assigned this macro to every button. The problem is that for some sheets, the macro prints the sheets in colour while for some others, it prints them in Black White. Ant help would be appreciated... Cheers, Sunny -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread
RE: $$Excel-Macros$$ Re: Printing sheets in colour using VBA in ecel
Hi Sunny, I know it's one of those two. To help I need to know which one. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Sunny Kapoor Sent: Monday, May 14, 2012 1:04 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Printing sheets in colour using VBA in ecel yes. Just like that. But , the macro doesn't print in colour. Sunny On Mon, May 14, 2012 at 10:00 PM, Asa Rossoff a...@lovetour.info wrote: Sunny, when you say manually print in color how do you do that? Do you click on Printer Settings or Page Setup to select that option? Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Sunny Kapoor Sent: Monday, May 14, 2012 12:55 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Printing sheets in colour using VBA in ecel Hmm, Well, do you think of something thats avoiding the macro from printing in colour?? Sunny On Mon, May 14, 2012 at 9:53 PM, dguillett1 dguille...@gmail.com wrote: My ans was based on what you sent Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Sunny Kapoor mailto:sunnykapo...@gmail.com Sent: Monday, May 14, 2012 2:38 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Printing sheets in colour using VBA in ecel well, Thanks for your reply. However, the file is quite big with more than 25 sheets. I sent one sheet to give an example. Now, the file will be used by many people but everyone would be interested in different sheets. The problem i am facing currently, like you must have seen is, the macro prints only black and white but manually you can print in colour, I would like the macro to print in colour ... Please see if you could help :) Thanks again, Sunny On Mon, May 14, 2012 at 9:34 PM, dguillett1 dguille...@gmail.com wrote: Based on the file you sent me with ONE sheet with graphs the easiest way would be to set up an additional printer with ONLY grayscale and call it bw or whatever and then print to that printer for bw and the other for color. Application.Dialogs(xlDialogPrinterSetup).Show Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Sunny Kapoor mailto:sunnykapo...@gmail.com Sent: Monday, May 14, 2012 11:02 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: Printing sheets in colour using VBA in ecel Hi, I have attached the file...Please let me know what should i do... Thanks in advance, Sunny On Monday, 14 May 2012 16:56:25 UTC+2, Sunny Kapoor wrote: Hi Guys, I am trting to print sheets in colour using VBA. I am using the following code... Sub Print_sheet() With ActiveSheet .PageSetup.BlackAndWhite = False .PrintOut Copies:=1, Collate:=True End With End Sub __ I have put Buttons on each sheet and assigned this macro to every button. The problem is that for some sheets, the macro prints the sheets in colour while for some others, it prints them in Black White. Ant help would be appreciated... Cheers, Sunny On Monday, 14 May 2012 16:56:25 UTC+2, Sunny Kapoor wrote: Hi Guys, I am trting to print sheets in colour using VBA. I am using the following code... Sub Print_sheet() With ActiveSheet .PageSetup.BlackAndWhite = False .PrintOut Copies:=1, Collate:=True End With End Sub __ I have put Buttons on each sheet and assigned this macro to every button. The problem is that for some sheets, the macro prints the sheets in colour while for some others, it prints them in Black White. Ant help would be appreciated... Cheers, Sunny On Monday, 14 May 2012 16:56:25 UTC+2, Sunny Kapoor wrote: Hi Guys, I am trting to print sheets in colour using VBA. I am using the following code... Sub Print_sheet() With ActiveSheet .PageSetup.BlackAndWhite = False .PrintOut Copies:=1, Collate:=True End With End Sub __ I have put Buttons on each sheet and assigned this macro to every button. The problem is that for some sheets, the macro prints the sheets in colour while for some others, it prints them in Black White. Ant help would be appreciated... Cheers, Sunny -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross
RE: $$Excel-Macros$$ query
Hi Aamir, You can use =SUMPRODUCT(SUBTOTAL(9,OFFSET($I$10,ROW($I$11:$I$100)-ROW($I$10),)),--($A2=$ H$11:$H$100)) in C2 and copy down. It will work for a filtered list like SUMIF. change the SUBTOTAL type from 9 to 109 to have it ignore rows that are manually hidden as well. Best not to use it with an entire column, but to specify the exact range (I used rows 11:100) because it is an array formula and does a calculation for every row. It is also volatile, so it is recalculated at every calculation. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Aamir Shahzad Sent: Saturday, May 12, 2012 10:31 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ query Example file is attached. On Sat, May 12, 2012 at 9:04 PM, dguillett1 dguille...@gmail.com wrote: Your desire is not clear. Provide a file with a complete explanation and examples. Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Aamir Shahzad mailto:aamirshahza...@gmail.com Sent: Saturday, May 12, 2012 10:31 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ query pick the values by vlookup or sumif only on visible cells. On Sat, May 12, 2012 at 8:19 PM, Rajan_Verma rajanverma1...@gmail.com wrote: CLTL+G ALT+S K Enter Regards Rajan verma +91 7838100659 tel:%2B91%207838100659 [IM-Gtalk] From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Aamir Shahzad Sent: 12 May 2012 8:40 To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ query Dear Group, How to pick the values by formula of visible cells only? Regards, Aamir Shahzad -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Regards, Aamir Shahzad -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and
RE: $$Excel-Macros$$ amend in macro
Sub Sheet1Multiplecopy() Dim s1 as worksheet, n as long, c as long c = worksheets.count set s1=worksheets(1) For n = msgbox(How many sheets do you want to add?) to 1 step -1 s1.Copy After:=s1 ActiveSheet.Name = n Next s1.select End Sub From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Aamir Shahzad Sent: Saturday, May 12, 2012 11:52 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ amend in macro Dear Group, Following macro provided by anyone in this forum this code is working fine but I want to amend into this coding e.g. when run this code it should ask by msg box How many sheets do you want to add? then take the input e.g 10 or any number then add sheets which given by user. Kindly do the needful. Thanks in advance. Sub Sheet1Multiplecopy() Dim i As Integer i = 1 For i = 1 To 100 Sheets(Sheet1).Select Sheets(Sheet1).Copy After:=Sheets(i) ActiveSheet.Name = i Next End Sub Regards, Aamir Shahzad -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ amend in macro
OOps, typos -- Sub Sheet1Multiplecopy() Dim s1 as worksheet, n as long set s1=worksheets(1) For n = msgbox(How many sheets do you want to add?) to 1 step -1 s1.Copy After:=s1 ActiveSheet.Name = n Next s1.select End Sub From: Asa Rossoff [mailto:a...@lovetour.info] Sent: Saturday, May 12, 2012 12:06 PM To: 'excel-macros@googlegroups.com' Subject: RE: $$Excel-Macros$$ amend in macro Sub Sheet1Multiplecopy() Dim s1 as worksheet, n as long, c as long c = worksheets.count set s1=worksheets(1) For n = msgbox(How many sheets do you want to add?) to 1 step -1 s1.Copy After:=s1 ActiveSheet.Name = n Next s1.select End Sub From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Aamir Shahzad Sent: Saturday, May 12, 2012 11:52 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ amend in macro Dear Group, Following macro provided by anyone in this forum this code is working fine but I want to amend into this coding e.g. when run this code it should ask by msg box How many sheets do you want to add? then take the input e.g 10 or any number then add sheets which given by user. Kindly do the needful. Thanks in advance. Sub Sheet1Multiplecopy() Dim i As Integer i = 1 For i = 1 To 100 Sheets(Sheet1).Select Sheets(Sheet1).Copy After:=Sheets(i) ActiveSheet.Name = i Next End Sub Regards, Aamir Shahzad -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Interview Questions with Answers (Excel+VBA+Access+SQL Server)
Thank you Noorain for sharing those. I just started reading through 50 Excel VBA Oral Questions. and the Q As seem good, but not all the answers are complete and thorough, and some could be misleading. For example: Ques 06. Difference between ActiveX and Form Controls. Solution: i) Forms controls can be used on worksheets and chart sheets. Forms controls can also be placed within embedded charts in Classic Excel (though not in Excel 2007). ActiveX controls can only be used on worksheets. ActiveX controls do not work in MacExcel. ii) The Forms controls aren't very complicated, and they have been part of Excel for longer (they were used in Excel 5/95's dialog sheets) than the Controls Toolbox (Excel 97), so it stands to reason that they'd be more seamlessly integrated. Being newer, the ActiveX controls have richer formatting possibilities. Both can link to cells and ranges in the worksheet. Especially since the file has VBA in the title, I would say the answer is incorrect or at least incomplete. Form controls can be used on worksheet and chart sheets (and ancient XLM macro sheets and dialog sheets). Correct enough. BUT ActiveX controls are used on both Worksheets and VBA UserForms (with more complete, and more reliable, support on UserForms). Ques 07. What is the difference b/w Functions and Subroutines? Solution: i) Subroutines never return a value but functions does return values. ii) A function could not change the values of actual arguments whereas a subroutine could change them. Re. ii: Well, a function can modify its arguments if they were passed ByRef (which is default), exactly as a subroutine can. Not that I recommend it. Use functions as functions and subs as subs :) Ques 13. Which are the 2 macro languages and which do you use ? Solution: XLM (used in Excel 97 or before) and VBA(used for 2000 and after). Obviously, VBA is in use these days. Actually, Excel first included XLM macros in version 3 (1990). It was the only macro language available until version 5 in 1993, when Excel first included VBA! Ques 31. Give technical reasons which made Microsoft withdraw its support for VBA in Mac? Solution: The reasons which made Microsoft drop its support to VBA are as follows, Microsoft visual basic relies heavily on machine code which was written for Power PC architecture. Also it would take another two years for developing VBA support for its architecture. It also states that Microsoft will incorporate VBA in the next script of office release for Mac. Sounds true-- but outdated. Office for Mac 2011 includes VBA support again. In any case, the Q A isn't always exactly right -- in my opinion sometimes omitting essential information -- but still demonstrates a good, and broad, knowledge of Excel. Many answers are really excellent, but don't take any one source like this by rote. Your potential employer might not be impressed with every answer! Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of NOORAIN ANSARI Sent: Thursday, May 10, 2012 4:25 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Interview Questions with Answers (Excel+VBA+Access+SQL Server) Dear Rajan,Ashish,Asa,SAM,Krishna,Maries and Don Sir, Group is waiting for your valuable contribution. -- Thanks regards, Noorain Ansari www.noorainansari.com http://www.excelmacroworld.blogspot.com www.excelmacroworld.blogspot.com On Thu, May 10, 2012 at 4:49 PM, NOORAIN ANSARI noorain.ans...@gmail.com wrote: Dear Group, Please find attached Interview questions and answers for MS Excel+VBA+MS Access+SQL Server. If any one have this type of question and answers, Kindly share with group. -- Thanks regards, Noorain Ansari www.noorainansari.com http://www.excelmacroworld.blogspot.com www.excelmacroworld.blogspot.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Thanks regards, Noorain Ansari www.noorainansari.com http://www.excelmacroworld.blogspot.com www.excelmacroworld.blogspot.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles.
RE: $$Excel-Macros$$ Defining Same Name For ranges available in multiple tabs
Hi Shekhar, You can use: =SUMIF(sheet1!WBS,A1,sheet1!COST)+SUMIF(sheet2!WBS,A1,sheet2!COST)+SUMIF(she et3!WBS,A1,sheet3!COST) Or, if the ranges are identical on each sheet, you can use 3-D references with certain functions (but not with SUMIF) to refer to basically a union of the identical ranges on a range of sheets, in the form: sheet1:sheet3!A2:A100 You can't use sheet1:sheet3!WBS, but you can make a new name for your 3-D reference if it uses a range reference (non-named). For more on 3-D references see https://office.microsoft.com/en-us/excel-help/create-a-3-d-reference-to-the- same-cell-range-on-multiple-worksheets-HP010102346.aspx. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Shekhar Sharma Sent: Friday, May 11, 2012 2:59 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Defining Same Name For ranges available in multiple tabs I'm wondering if it's possible to define one name for columns in multiple worksheet. Basically I'm working on an estimating spreadsheet with multiple sheets; each sheet contains hundreds of individual costs (separate lines) which are categorized into more generic numerical buckets. So each line has a column for the generic buck and the cost. I'd like to have a summary sheet with a column summarizing these numerical buckets and the total cost for each bucket which is added from each sheet. Let's say the generic bucket column in each tab is called WBS, and the cost column is called COST. In my summary tab, I'd like a formula such as =SUMIF(WBS,A1,COST)...but of course this doesn't work. Any ideas on how I can solve this? -- Shekhar Sharma Life consists not in holding good cards but in playing those you hold well Before you judge another, think of your own last mistake. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Defining Same Name For ranges available in multiple tabs
A couple other alternatives (that I haven't used) are: 1. Write VBA UDF macros to summarize all the ranges you want, or to return a more flexible 3-D array that you can use with built-in functions or array formulae 2. Use the Morefunc addin (raved about in online forums, I haven't tried it) which among other things implements more 3-D functions to help you summarize your 3-D range, or to return a single array from a 3D range that you can then use with many built-in functions and array formulae 3. Supposedly you can use the Indirect function with an array of sheets and ranges to create a 3D array, with certain limitations and quirks. However, examples I saw online do not work in Excel 2010.. it may work in earlier versions. The author of Morefunc's site seems to be down at the moment, but you can find the addin at http://download.cnet.com/Morefunc/3000-2077_4-10423159.html. The author's site listed it as compatible through Excel 2007, but reportedly it also work with Excel 2010 but you may need an added setup step (add references to Morefunc.xll and Morefunc12.xlam - see http://www.mrexcel.com/forum/showthread.php?t=467397). Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Friday, May 11, 2012 8:18 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Defining Same Name For ranges available in multiple tabs Hi Shekhar, You can use: =SUMIF(sheet1!WBS,A1,sheet1!COST)+SUMIF(sheet2!WBS,A1,sheet2!COST)+SUMIF(she et3!WBS,A1,sheet3!COST) Or, if the ranges are identical on each sheet, you can use 3-D references with certain functions (but not with SUMIF) to refer to basically a union of the identical ranges on a range of sheets, in the form: sheet1:sheet3!A2:A100 You can't use sheet1:sheet3!WBS, but you can make a new name for your 3-D reference if it uses a range reference (non-named). For more on 3-D references see https://office.microsoft.com/en-us/excel-help/create-a-3-d-reference-to-the- same-cell-range-on-multiple-worksheets-HP010102346.aspx. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Shekhar Sharma Sent: Friday, May 11, 2012 2:59 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Defining Same Name For ranges available in multiple tabs I'm wondering if it's possible to define one name for columns in multiple worksheet. Basically I'm working on an estimating spreadsheet with multiple sheets; each sheet contains hundreds of individual costs (separate lines) which are categorized into more generic numerical buckets. So each line has a column for the generic buck and the cost. I'd like to have a summary sheet with a column summarizing these numerical buckets and the total cost for each bucket which is added from each sheet. Let's say the generic bucket column in each tab is called WBS, and the cost column is called COST. In my summary tab, I'd like a formula such as =SUMIF(WBS,A1,COST)...but of course this doesn't work. Any ideas on how I can solve this? -- Shekhar Sharma Life consists not in holding good cards but in playing those you hold well Before you judge another, think of your own last mistake. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM
RE: $$Excel-Macros$$ Re: Defining Same Name For ranges available in multiple tabs
Nice solution, Haseeb. Works for me in Excel 2010. This method worked with named ranges. If you use the same range name on each worksheet, you can use: =SUMPRODUCT(SUMIF(INDIRECT('$D$1:$D$10'!WBS),A1,INDIRECT('$D$1:$D$1 0'!COST))) Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Haseeb A Sent: Friday, May 11, 2012 11:52 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: Defining Same Name For ranges available in multiple tabs Hello Shekhar, If I am following correctly, you can use SUMPRODUCT with SUMIF/INDIRECT Enter the sheet names in D1:D10 (or how many you have. Do not include empty cells in the range) of the summary sheet. then use =SUMPRODUCT(SUMIF(INDIRECT('$D$1:$D$10'!A:A),A1,INDIRECT('$D$1:$D$1 0'!B:B))) Regards, Haseeb A -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting
Excellent. I hope I didn't give the impression I was unwilling to help more. I am happy to. But if you need more help, I prefer a specific question than just giving a complete solution... so you can gain the most experience and expertise. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Thursday, May 10, 2012 12:54 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting Hi Asa Rossoff I'm working on a solution, with the help of friends, when finished. I send a result Chilexcel 2012/5/8 Asa Rossoff a...@lovetour.info: Hi Chil, Did you try to use those functions, and if so, please post your effort and what trouble you are having. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Tuesday, May 08, 2012 8:08 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting Thx Asa Rossoff ,all this I know, also the links Please Rajan you help !!! ... Chilexcel 2012/5/7 Asa Rossoff a...@lovetour.info: Chil, Also see Bob Phillip's method @ http://www.xldynamic.com/source/xld.CFConditions.html -Original Message- From: Asa Rossoff [mailto:a...@lovetour.info] Sent: Monday, May 07, 2012 4:08 PM To: 'excel-macros@googlegroups.com' Subject: RE: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting Excel has no function to determine conditional formats of cells -- you have to evaluate the same formulas used to color the cells again yourself to determine what color/format the cell will have received. The simplest solution is probably to use VBA to evaluate the CFs, see http://www.cpearson.com/excel/cfcolors.htm for examples. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Monday, May 07, 2012 4:01 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting hi all Please I need urgent function for sum and count backColor ...cells have conditional formatting Thx Chilexcel -- Visita ; http://sites.google.com/site/chilexcel/Home Visita ; http://www.youtube.com/user/timextag41 -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Visita ; http://sites.google.com/site/chilexcel/Home Visita ; http://www.youtube.com/user/timextag41 -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss
RE: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting
Hi Chilexcel, The problem for me comes because if the person requesting help does not look at themselves as a student in the relationship, then it seems to me they are just asking me to do their job for them... but I am not getting paid. I know you are very skilled already... Yes, Microsoft should offer bonuses to their advocates :) Actually, honestly I am more of an open source advocate. I have more experience in MS Office though, and don't have a real need at the moment to better learn LibreOffice/OpenOffice, so here I am working in Excel! Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Thursday, May 10, 2012 2:35 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting I understand, I prefer a complete solution , not partial, my job is to solve specific problems. excel is my work tool..applications, tools, add ins , all in excel I know much about excel, but, not I know all however, advise use excel , for solutions informaticas , is a good tool Maybe Microsoft could pay me Incentive for Sale (jejeje), thx Asa Rossoff Chilexcel 2012/5/10 Asa Rossoff a...@lovetour.info: Excellent. I hope I didn't give the impression I was unwilling to help more. I am happy to. But if you need more help, I prefer a specific question than just giving a complete solution... so you can gain the most experience and expertise. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Thursday, May 10, 2012 12:54 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting Hi Asa Rossoff I'm working on a solution, with the help of friends, when finished. I send a result Chilexcel 2012/5/8 Asa Rossoff a...@lovetour.info: Hi Chil, Did you try to use those functions, and if so, please post your effort and what trouble you are having. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Tuesday, May 08, 2012 8:08 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting Thx Asa Rossoff ,all this I know, also the links Please Rajan you help !!! ... Chilexcel 2012/5/7 Asa Rossoff a...@lovetour.info: Chil, Also see Bob Phillip's method @ http://www.xldynamic.com/source/xld.CFConditions.html -Original Message- From: Asa Rossoff [mailto:a...@lovetour.info] Sent: Monday, May 07, 2012 4:08 PM To: 'excel-macros@googlegroups.com' Subject: RE: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting Excel has no function to determine conditional formats of cells -- you have to evaluate the same formulas used to color the cells again yourself to determine what color/format the cell will have received. The simplest solution is probably to use VBA to evaluate the CFs, see http://www.cpearson.com/excel/cfcolors.htm for examples. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Monday, May 07, 2012 4:01 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting hi all Please I need urgent function for sum and count backColor ...cells have conditional formatting Thx Chilexcel -- Visita ; http://sites.google.com/site/chilexcel/Home Visita ; http://www.youtube.com/user/timextag41 -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any
RE: $$Excel-Macros$$ Fwd: Need help on data
Hello Bé Trần, I believe that is what Lokesh meant (sheet1 = data entry form; sheet2 = database record storage) -- but I am replying just to provide the suggestion that you type your replies at the top of messages -- I often have difficulty finding your comments, since they are buried down below the old messages. Also, the mailing list automatically puts the rules for the group at the bottom of all messages, further obscuring the location of your message replies. I think more people will notice your comments if you put them at the top of your messages :) Wishing you a great day! Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Bé Tr?n Van Sent: Wednesday, May 09, 2012 8:40 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Fwd: Need help on data 2012/5/9 Lokesh Loki lokeshsmg2...@gmail.com Hai Anil, Thanks for resolving the query and thanks for advising me about the user form. Once again thank a lot experts. Regards Lokesh.M On Wed, May 9, 2012 at 2:42 PM, Anil Gawli gawlianil8...@gmail.com wrote: Attached is the workbook and go to Calculation worksheet. On Wed, May 9, 2012 at 6:01 AM, David Grugeon da...@grugeon.com.au wrote: Hi Lokesh I do not think you will get a reply from this group to to your question as it is. What you are asking for is more in the nature of application design and that is not a quick and simple answer to a question. This group exists to help people who are having problems with VBA in Excel. Whilst you may need VBA to fill your form (which is not a 'user form' but a spreadsheet set up as an input form) the design of the form and the linking of that form to the relevant spreadsheet is something you will need to do. If your company does not have the relevant skills to do this they may need to hire a contractor to do it. To give you a start, I would be looking at using a unique identifier (Employee ID for example) to identify the row on sheet two that you want to use in sheet 1. Then I would probably use a macro to copy the data for one line from Sheet 2 to the form, add a button for OK when the changes were done and copy it back to Sheet 2. We can help you with the macros but the design of the Beautiful form is entirely up to you You will need to think about what information a user can enter to identify the relevant row of sheet 2. You will need to think about what operations you need to do create buttons for. I would think Edit (Load), Add, Delete, OK and Cancel at least. You will also need to specify all the validation rules for any cell which needs them. When you have done as much work as you can on the form and have identified the answers to all the questions come back to the group for more help with the VBA. On 9 May 2012 00:29, Lokesh Loki lokeshsmg2...@gmail.com wrote: Hi Experts, Still i am not receiving any results in the group, could you please help on us for the below query. I need a beautiful form, when i am selecting the name it contains all the data which is already there in sheet2. So based on i need a user form in sheet1. Please do the needful. Thanks in advance. Regards Lokesh.M -- Forwarded message -- From: Lokesh Loki lokeshsmg2...@gmail.com Date: Sun, May 6, 2012 at 8:28 PM Subject: Need help on data To: excel-macros@googlegroups.com Hi Experts, Please find the attached excel sheet and i need user form for this team data. Here in the second sheet i have a data, i need user form in the first sheet. Regards Lokesh.M -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or
RE: $$Excel-Macros$$ Replacement of Lookup function
Hi Shekhar, Well, the prupose of the formula is, in the end, to lookup a text value based on an input value. This is best accomplished with a lookup function. ANY of the lookup functions could be used - LOOKUP, HLOOKUP, VLOOKUP, CHOOSE, INDEX, etc. Here is a version that utilizes SUMPRODUCT, but since SUMPRODUCT is a more general purpose array function, and it performs math on the array (it SUMs all the values in the array), it has more work to do and is likely a little slower than a pure lookup function solution: =CHOOSE(SUMPRODUCT(--(E2={1,11,13,14})),High,Medium,Low,/) Totally irrelevant to your question. but if you wanted to summarize your data based on the count of High,Medium,Low,/ values you could either use COUNTIF formulas, or an array formula using FREQUENCY, which counts values into bins (groups by value ranges). Unfortunately, FREQUENCY identifies numbers that are = bin values instead of = as LOOKUP does, but a bit of math and an INDEX function will have it group values the same way LOOKUP does: =INDEX(FREQUENCY($E$2:$E$100+0.001,{1,11,13,14}),ROW($2:$5)) To enter the above array formula, enter it in a vertical range of 4 cells. In the 4 cells to the left or right of that formula, type the following labels: High Medium Low '/ Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Shekhar Sharma Sent: Wednesday, May 09, 2012 6:09 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Replacement of Lookup function Just wondering if there is a replacement for the LOOKUP function, at the moment I am using =LOOKUP(E2,{1,11,13,14;High,Medium,Low,/}) to return a high medium value to a cell etc. Is there another way of doing this can anyone tell me, which doesn't use LOOKUP? Can we do this with sumproduct, if yes then how? -- Shekhar Sharma 9910010060 Life consists not in holding good cards but in playing those you hold well Before you judge another, think of your own last mistake. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Table data fit the page size..(auto)
I see you already have it fit to page when printed - Do you mean you want to have the table forced into the shape of the page to completely fill the page? If so, I think you will need a macro, and it could be a bit tricky. You currently have a macro adjusting the margins in the Worksheet.SelectionChange event -- that will slow your worksheet down -- there is no need to reset the margins every time the cursor moves. It should be enough to just set them once in the Page Setup dialog, but if you want to reset them with a macro, use Worksheet.Activate or Workbook.BeforePrint (in Workbook.BeforePrint you might check if the worksheet is in ActiveWindow.SelectedSheets to determine if it is one being printed -- if needed -- it should be reliable in most cases). To resize the table, I would use the Page Setup oftion to Fit to 1 Page TALL, and leave the Fit to pages wide blank. This will only scale the table automatically to fit based on length, and take up as many pages wide as required. Then in your macro adjust the column widths to makke it fit on the one page. I am not experienced with this, so I will leave the details for you or others, unless I find the time to experiment with it. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Mohammed Muneer Sent: Monday, May 07, 2012 11:02 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Table data fit the page size..(auto) Dear friends, I want the Table margin fit the page size - by equally grow to all the four sides irrespective of the data consistency. Regards, Muneer, CC. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Date Problem
hilary, Instead of TEXT(MONTH(TODAY()),mmm), I think you were aiming for TEXT(TODAY(),mmm). You could also use =TODAY() with a cell format of mmm to have it displayed as Jan/Feb/etc. but still hold a dateserial as the underlying value of the cell. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Sam Mathai Chacko Sent: Tuesday, May 08, 2012 1:00 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Date Problem Because today is the 5th month. And the value of 5 is actually equivalent to 5 days starting from day zero. In other words, it is just the 5th of January 1900. And the month of 5th January 1900 is Jan of course. Regards, Sam Mathai Chacko On Tue, May 8, 2012 at 11:33 AM, resp...@gmail.com wrote: Thanks for this as well Noorain. But can you explain why excel was returning Jan when I tried ♍Ɣ earlier formula? Just for ♍Ɣ information. Thnks Sent from my BlackBerry® smartphone from Airtel Ghana _ From: NOORAIN ANSARI noorain.ans...@gmail.com Sender: excel-macros@googlegroups.com Date: Tue, 8 May 2012 23:58:01 +0530 To: excel-macros@googlegroups.com ReplyTo: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Date Problem Another approach.. =CHOOSE(MONTH(TODAY()),Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec) -- Thanks regards, Noorain Ansari www.noorainansari.com http://www.excelmacroworld.blogspot.com www.excelmacroworld.blogspot.com On Tue, May 8, 2012 at 11:32 PM, hilary lomotey resp...@gmail.com wrote: Hello Pls i want to get the month of today such as May but if i use this formula TEXT(MONTH(TODAY()),mmm) its evaluates to Jan, however if i evaluate only MONTH(TODAY()) is gets the correct month which is 5, so why am i getting Jan, when i add the text fucntion. i need it to be dynamic, thats why i want to use today -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Sam Mathai Chacko -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5)
RE: $$Excel-Macros$$ Digest for excel-macros@googlegroups.com - 2 Messages in 2 Topics
To unsubscribe from this group, mailto:excel-macros+unsubscr...@googlegroups.com send an empty message to excel-macros+unsubscr...@googlegroups.com. From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Gaurav Parmar Sent: Tuesday, May 08, 2012 4:33 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Digest for excel-macros@googlegroups.com - 2 Messages in 2 Topics Please remove me from this group Sent from my iPhone On May 8, 2012, at 6:23 PM, excel-macros@googlegroups.com wrote: Today's Topic Summary Group: http://groups.google.com/group/excel-macros/topics http://groups.google.com/group/excel-macros/topics § Table data fit the page size..(auto) [1 Update] § To create a serial number based on some conditions using macro. [1 Update] http://groups.google.com/group/excel-macros/t/9f9012907a3b9af3 Table data fit the page size..(auto) Asa Rossoff a...@lovetour.info May 08 01:36PM -0700 I see you already have it fit to page when printed - Do you mean you want to have the table forced into the shape of the page to completely fill the page? If so, I think you will need a macro, and it could be a bit tricky. You currently have a macro adjusting the margins in the Worksheet.SelectionChange event -- that will slow your worksheet down -- there is no need to reset the margins every time the cursor moves. It should be enough to just set them once in the Page Setup dialog, but if you want to reset them with a macro, use Worksheet.Activate or Workbook.BeforePrint (in Workbook.BeforePrint you might check if the worksheet is in ActiveWindow.SelectedSheets to determine if it is one being printed -- if needed -- it should be reliable in most cases). To resize the table, I would use the Page Setup oftion to Fit to 1 Page TALL, and leave the Fit to pages wide blank. This will only scale the table automatically to fit based on length, and take up as many pages wide as required. Then in your macro adjust the column widths to makke it fit on the one page. I am not experienced with this, so I will leave the details for you or others, unless I find the time to experiment with it. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Mohammed Muneer Sent: Monday, May 07, 2012 11:02 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Table data fit the page size..(auto) Dear friends, I want the Table margin fit the page size - by equally grow to all the four sides irrespective of the data consistency. Regards, Muneer, CC. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com http://groups.google.com/group/excel-macros/t/cfabc88bead82115 To create a serial number based on some conditions using macro. Excel_Lover idforex...@gmail.com May 08 11:26PM +0300 Thanks Asa, Thank you very much! Its working fine, You received this message because you are subscribed to the Google Group excel-macros. You can mailto:excel-macros@googlegroups.com post via email. To unsubscribe from this group, mailto:excel-macros+unsubscr...@googlegroups.com send an empty message. For more options, http://groups.google.com/group/excel-macros/topics visit this group. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED
RE: $$Excel-Macros$$ Fwd: Need help on data
Hello Lokesh, You may want to try Debra Dalgleish and Dave Petersen's method detailed here: http://contextures.com/exceldataentryupdateform.html Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Lokesh Loki Sent: Tuesday, May 08, 2012 7:30 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Fwd: Need help on data Hi Experts, Still i am not receiving any results in the group, could you please help on us for the below query. I need a beautiful form, when i am selecting the name it contains all the data which is already there in sheet2. So based on i need a user form in sheet1. Please do the needful. Thanks in advance. Regards Lokesh.M -- Forwarded message -- From: Lokesh Loki lokeshsmg2...@gmail.com Date: Sun, May 6, 2012 at 8:28 PM Subject: Need help on data To: excel-macros@googlegroups.com Hi Experts, Please find the attached excel sheet and i need user form for this team data. Here in the second sheet i have a data, i need user form in the first sheet. Regards Lokesh.M -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting
Hi Chil, Did you try to use those functions, and if so, please post your effort and what trouble you are having. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Tuesday, May 08, 2012 8:08 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting Thx Asa Rossoff ,all this I know, also the links Please Rajan you help !!! ... Chilexcel 2012/5/7 Asa Rossoff a...@lovetour.info: Chil, Also see Bob Phillip's method @ http://www.xldynamic.com/source/xld.CFConditions.html -Original Message- From: Asa Rossoff [mailto:a...@lovetour.info] Sent: Monday, May 07, 2012 4:08 PM To: 'excel-macros@googlegroups.com' Subject: RE: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting Excel has no function to determine conditional formats of cells -- you have to evaluate the same formulas used to color the cells again yourself to determine what color/format the cell will have received. The simplest solution is probably to use VBA to evaluate the CFs, see http://www.cpearson.com/excel/cfcolors.htm for examples. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Monday, May 07, 2012 4:01 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting hi all Please I need urgent function for sum and count backColor ...cells have conditional formatting Thx Chilexcel -- Visita ; http://sites.google.com/site/chilexcel/Home Visita ; http://www.youtube.com/user/timextag41 -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Visita ; http://sites.google.com/site/chilexcel/Home Visita ; http://www.youtube.com/user/timextag41 -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited
RE: $$Excel-Macros$$ My First Excel Program
Hi Hilary, looks good! My first question: You're a 14 year old single mom?! And an Excel whiz to boot. Please update on how it is coming along, and I will try to help with some of your remaining troubles! Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of hilary lomotey Sent: Monday, April 30, 2012 9:06 AM To: excel-macros Subject: $$Excel-Macros$$ My First Excel Program Hello Guru's i am trying to build my first program with excel and its been fun,daring and tough at the same time. From a finance background i wanted to build something i can relate to. Attached is the file, basically what i want is to have to go thru a process of setting up a client, post the details to create the database. Secondly transact a business, ie be able to deposit or post a withdrawal and post it to the database. Be able to retrieve the client information.- i have been able to write a formula to retrive the client information (client info a/c) ***i have been able to write a formula that will extract a unique name from multiple records which i used for my data validation of names, i tried to sort these names with a formula but getting an error-- i need assistance here pls (client transactions a/c) ***Furthermore if i select the name of the client some of them come correctly while others give me an error (client transactions a/c). i have checked the formula over and over again but cant see where the error is coming from *** For the A/c Set up, can i get a VBA code such that any time i enter information in the spaces provided, i will be able to post the transaction to the a/c setup database. ***is it also possible to retrieve a client information and do amendment with a VBA code. (i have started learning VBA but not too strong enough) Thanks -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com image001.png Description: Binary data
RE: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting
Excel has no function to determine conditional formats of cells -- you have to evaluate the same formulas used to color the cells again yourself to determine what color/format the cell will have received. The simplest solution is probably to use VBA to evaluate the CFs, see http://www.cpearson.com/excel/cfcolors.htm for examples. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ChilExcel Sent: Monday, May 07, 2012 4:01 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Count sum color cell, cells have conditional formatting hi all Please I need urgent function for sum and count backColor ...cells have conditional formatting Thx Chilexcel -- Visita ; http://sites.google.com/site/chilexcel/Home Visita ; http://www.youtube.com/user/timextag41 -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ How to make using excel to print the Bank deposit slips
Hi V.Kiran, If you need to use an exact copy of the bank's form, it may be a bit tricky in Excel. Whether to use Excel at all, and what approach to take if you do, depends on the reason you are trying to undertake this. For example, if you want to use an exact copy of the bank's form, and your reason is just to be able to fill the form out on the computer -- Excel is not ideally designed for this (it would be a good deal of work to make it work nicely in Excel). Adobe Acrobat documents into fillable forms very readily - https://www.adobe.com/products/acrobatpro/create-fillable-pdf- forms.html - and even collect the data. If it will be integrated with a spreadsheet, perhaps with the deposit slips automatically being filled in by formulas or macros, then perhaps implementing it in Excel is worth the trouble. A few approaches that come to mind using Excel: 1. Redesign the form in Excel from scratch, possible copying the logo or other elements from the original form (ask the bank if there are any rules about the form you use for the deposit slip). 2. Use preprinted forms and layout your Excel sheet so the relevant data will line up correctly when printed. You could have one sheet for data entry, and another for printing that just has the figures linked with formulas. 3. Insert the scanned image on a spreadsheet, and use text frame to outline the areas that need to be filled in. Uncheck the Lock text option under Properties for the text frame, and enable worksheet protection so everything else is locked and eneditable. I haven't tested this, but it should let you edit as desired. Not sure that there will be any keyboard navigation (tab/arrow) between fields (unless you at able to implement that with a macro, perhaps utilizing Application.OnKey - but being careful to only take over those keys when this worksheet is active). 4. Open the scanned image in a photo editing program. Turn the background transparent instead of white. Insert the image in a worksheet. You can now enter data in the regular worksheet grid. With the data in actual cells, you can use formulas either on the deposit slip or to refer to the deposit slip values, if required. The values will show through the deposit slip and look like they were typed ontop of the deposit slip. The truth is that the image is on top of the worksheet, though, so although tab and arrow keys will work, you can't select cells/fields on the deposit slip with the mouse (it will select the image, or if the worksheet is locked to prevent that, it will do nothing). If you take this approach, you may want to do many cell merges so that there are cells to take up the correct space and shape for every field on the deposit slip. Uncheck Locked under Properties/Protection for all the field cells, and you will be able to lock the sheet and enjoy tab/arrow between fields only. Depending on how the cells are merged, the tab order may or may not be what you want, though (possibly requiring a macro to improve the tab/arrow order). For any Excel method, a final nice touch would be to disable display of the gridlines and possibly row and column headings. I worked up an example of the fourth Excel method (using one of your deposit slips). I implemented transparency, merged cells, and unlocked appropriate cells. I left the worksheet unprotected to avoid any confusion for someone examining the workbook, but if you protect the sheet you will see how the focus is limited to the fields on the deposit slip, as well as witness the limitations to this method already described. The file size is too large for the group with the scanned image, so here are links to an XLS file and the image file after my edit. FILEDownload to download: ·Deposit Slip Example.XLS https://docs.google.com/open?id=0Bwkcc6g0MuPTU25GTDVJODE0UGs https://docs.google.com/open?id=0Bwkcc6g0MuPTU25GTDVJODE0UGs ·Deposit Slip Example.PNG https://docs.google.com/open?id=0Bwkcc6g0MuPTMW92X3Q2N3kwNGs https://docs.google.com/open?id=0Bwkcc6g0MuPTMW92X3Q2N3kwNGs Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of ?.*:*¨¨*:*.?.*:V.Kiran Kumar :*.?.*:*¨¨*:*.? Sent: Friday, April 27, 2012 2:18 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ How to make using excel to print the Bank deposit slips Dear All I am having problem with bank cheque and cash deposit slips I am failing make bank cheque and cash deposit slips in excel If any body can assist me as per attached bank cheque and cash deposit slips in excel I shall be thankful Regards V.Kiran Kumar -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't
RE: $$Excel-Macros$$ Automatic insert of row at each change in particular data
Hi Vaibhav, You got some other good responses. Here are versions that should be faster for large ranges, since it does not have to loop through every cell in column A. It has an important limitation, though: It will only work correctly if there are at least two of every unique value in column A (unlike your sample file which only had one). Version for when column A has no header row: Sub ShiftOnChangeInA_NoHeaders() Dim FilterRange As Range Dim SplitAt As Range With ThisWorkbook.Worksheets(Sheet1) .Rows(1).Insert Set FilterRange = .Range(A1, .Range(A:A).Find(*, LookIn:=xlValues, SearchDirection:=xlPrevious)) FilterRange.AdvancedFilter xlFilterInPlace, Unique:=True Set SplitAt = FilterRange.EntireRow.Resize(FilterRange.Rows.Count - 2).Offset(2).SpecialCells(xlCellTypeVisible) If .FilterMode Then .ShowAllData SplitAt.Insert (xlDown) .Rows(1).Delete End With End Sub Version for when column A does have a header row: Sub ShiftOnChangeInA_Headers() Dim FilterRange As Range Dim SplitAt As Range With ThisWorkbook.Worksheets(Sheet1) Set FilterRange = .Range(A1, .Range(A:A).Find(*, LookIn:=xlValues, SearchDirection:=xlPrevious)) FilterRange.AdvancedFilter xlFilterInPlace, Unique:=True Set SplitAt = FilterRange.EntireRow.Resize(FilterRange.Rows.Count - 2).Offset(2).SpecialCells(xlCellTypeVisible) If .FilterMode Then .ShowAllData SplitAt.Insert (xlDown) End With End Sub Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of vaibhav joshi Sent: Wednesday, May 02, 2012 10:36 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Automatic insert of row at each change in particular data Hi i wanted to insert a row between cell A1 A2 at each change in column A text On Thu, May 3, 2012 at 10:39 AM, Maries talk2mar...@gmail.com wrote: Can you share sample file... On Wed, May 2, 2012 at 9:58 PM, vaibhav joshi vaibhav...@gmail.com wrote: Dear all I am having a sheet ,which contains data of various parties. I want to insert row at each change in party name automatically ,whether it can be done automatically or i have to make it manually Regards Vaibhav -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread
RE: $$Excel-Macros$$ Hiding Work Sheets
Hi Ashish, Workbook protection. http://spreadsheetpage.com/index.php/tip/spreadsheet_protection_faq1/ Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Ashish Pradhan Sent: Wednesday, May 02, 2012 12:20 AM To: Excel Macros Subject: $$Excel-Macros$$ Hiding Work Sheets Hello I have an excel file with multiple worksheets. I need to hide many sheets in this file. However, only I should be able to unhide the hidden sheet. I did the following: Visual Basic Editor Double Click on the correct Project in the Explorer window Click on the required Sheet name Then look at the Window called Properties and you will see a property called visible Change the value to Very Hidden Then Right Click on the Main Project again go to Project Properties and password protect the project The above works, however, I am unable to find the Sheet to unhide again when I go to Format -- Sheet -- Unhide. What am I doing wrong? Is there any other way to simply password protect the feature of hiding a work sheet? Any help would be appreciated. -- Thanks Ashish Pradhan -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ Rajan verma : Most Helpful Member- Apr'2012
Congratulations Rajan, you're very generous with your time and expertise! Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Ayush Jain Sent: Wednesday, May 02, 2012 9:01 AM To: excel-macros Subject: $$Excel-Macros$$ Rajan verma : Most Helpful Member- Apr'2012 Hello Everyone, Rajan Verma has been selected as 'Most Helpful Member' for the month of April'2012 He has posted 185 posts in April 2012 and helped many people through his expertise. He has been consistent contributor to this excel forum and has acheived this recognition many times. Thanks to Don, Noorain, Asa, Maries, and other folks for helping excel enthusiasts voluntarily !! Keep it up !! Keep posting. Regards Ayush Jain Group Manager Microsoft MVP -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ NAND memory flash-drive, writing from Excel to a text file
Hi Pascal, I'm glad you found the problem (specifying the whole path with Getfile) With late binding you don't need to set a library reference. If you don't set a library reference, the constants aren't defined. You can easily verify the values of the constants in the immediate window like so: ? ForReading' Should indicate 1 per MSDN ? ForWriting' Should indicate 2 ? TriStateUseDefault' Should indicate -2 If they are defined, then you must have set a reference to the library, or defined them yourself. If you set a reference to the library, it is preferable to use early binding, like so: Dim fs As Scripting.FileSystemObject, f As Scripting.File, ts As Scripting.TextStream '. Set fs = New Scripting.FileSystemObject '. If you want to use late binding, it's best to not reference the library at all, in order to enjoy the main benefits of late binding (different library versions breaking references on different computers). Then you need to either define the constants yourself or just use their numeric values when you make calls to the library. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of bpascal123 Sent: Wednesday, May 02, 2012 1:26 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ NAND memory flash-drive, writing from Excel to a text file Hi Asa, I don't think there is any issues with constant, undefined variable types or else, i do use option explicit for each module... I use late binding for library references. The code that doesn't work is from msdn OpenAsTextStream Method. I don't see any mistake I could have made. If yes the code should not be working at all. The first module testy generates an error with this line: Set f = fs.GetFile(test2.txt) 'Error : File not found ...on removable flash FAT32 filesystem...OK on NTFS HD The second module testz works with any storage devices and file system without any issue. As you can see, it uses: Set txtfile = fso.CreateTextFile(Y:\test1.txt, True) The True parameter enables writing on the file (btw if you omit true, it seems to overwrite a file without warning...) If I understand from your previous post, Fat32 might generate some issues. File system library seems to have been there for quite a while as vbscript, and other scripts... so I don't see myself finding such a simple bug, given that flash memory is widely available and used. To go further with this, I should experiment this: format a usb key with NTFS and run the testy script from above. I don't know what I will get but from what you say in your previous post, it should then work or else it's a Vbscript bug... Following this second discussion on storage technologies, I agree optical fiber can transmit data the fastest. However I don't see flash memory last for long since it was demonstrated not long ago that nothing we know about can travel faster than light and flash memory is still accessing data using semiconductors... After this my knowledge in this area becomes very weak... :) In my mind, what I would see possible to implement to store data is using liquid crystal properties and access data using light to reach light speed like with optical fibers but a laser is as fast as any other light, like printer can come now with LED instead of laser beam... The thing is that using LCD would always require some power to keep what is stored in memory like with an LCD screen when off is blank or simply like with RAM... and else I don't have any idea about the volume of data that can be stored using liquid crystals. LCD currently store in very high definition 24 bit per pixel... Pascal Baro -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive,
RE: $$Excel-Macros$$ Fixing the problem
Hi Dhanesh, =SUMIFS(F3:R3,F2:R2,=B3,F2:R2,=C3) will total the periods whose date (as specified in row 2 -- appears to be month-ending date) falls between the specified dates in B3 and C3. =COUNTIFS(F2:R2,=B3,F2:R2,=C3) will count the number of periods that actually appear in the table and whose designated date falls within the date range. Hope this is useful to you. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Dhanesh Verma Sent: Tuesday, May 01, 2012 1:23 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Fixing the problem Dear Friends, I want to put a formula in the attached sheet to calculate automatically as and when I change the periods., please help.. Rgds Dhanesh DISCLAIMER AND PRIVILEGE NOTICE : This e-mail and any files transmitted with it contain confidential, copyright, proprietary and legally privileged information. It should not be used by anyone who is not the original intended recipient. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you receive this transmission in error, please notify the sender by reply email and then destroy the message. Opinions, conclusions and other information in this message that do not relate to official business of DEN Networks Ltd., its subsidiaries, holding companies i.e. DEN shall be understood to be neither given nor endorsed by DEN. Internet communications cannot be guaranteed to be timely, Secure, error or virus-free. The sender does not accept liability for any errors or omissions. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ NAND memory flash-drive, writing from Excel to a text file
Hi Pascal, Actually, my feeling is that your code is leaving a file handle open unneccesarily and you are having a file sharing/locking violation on FAT32 volumes -- since you only need to have one file handle open at a time, your code should be correctable (unless VBSCRIPT has some strange bug). Interesting thought about optics. One issue with any reusable media is that it has to be physically changed to store information. Current optical media receive more destructive changes and require more energy for those changes than magnetic media. I imagine the death of removable optical media like CD/Blu Ray, and being replaced by centralized internet storage and next gen flash media. Transmission of data might be more and more wireless, or when wired, more and more fiber-optic. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of bpascal123 Sent: Tuesday, May 01, 2012 6:42 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ NAND memory flash-drive, writing from Excel to a text file Hi, I meant magnetic hard drive...based on the fact both are rotational and that myself I was looking for my glasses while writing this post :) , I mixed them up... Btw, from latest experiments (i wasn't part of it, i'm not a scientist nor do i know about it in detail), nothing travels faster than light, then how magnetic drives can be faster than optical drives...and applied to flash memory I think sooner or later RD will come back to optical storage maybe without rotation... Asa said it should be related to the file system (FAT32) and not the support itself... then I conclude the first code (code 1/2), doesn't support FAT32. exFat is the latest filesystem from Microsoft aims at flash storage devices. Pascal -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ NAND memory flash-drive, writing from Excel to a text file
P.S. My comment about the constants may be important and relevant. The behavior of your code with undefined constants is quite possibly quite different than what your code appears to do. If you don't set a reference to the Scripting library, your constants will all be undefined. If you use OPTION EXPLICIT at the top of your module, you will ge a compile error if you try to use undefined constants/variables. Always a good idea. You can define the constants yourself, as the Excel help file examples do. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Tuesday, May 01, 2012 7:42 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ NAND memory flash-drive, writing from Excel to a text file Hi Pascal, Actually, my feeling is that your code is leaving a file handle open unneccesarily and you are having a file sharing/locking violation on FAT32 volumes -- since you only need to have one file handle open at a time, your code should be correctable (unless VBSCRIPT has some strange bug). Interesting thought about optics. One issue with any reusable media is that it has to be physically changed to store information. Current optical media receive more destructive changes and require more energy for those changes than magnetic media. I imagine the death of removable optical media like CD/Blu Ray, and being replaced by centralized internet storage and next gen flash media. Transmission of data might be more and more wireless, or when wired, more and more fiber-optic. Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of bpascal123 Sent: Tuesday, May 01, 2012 6:42 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ NAND memory flash-drive, writing from Excel to a text file Hi, I meant magnetic hard drive...based on the fact both are rotational and that myself I was looking for my glasses while writing this post :) , I mixed them up... Btw, from latest experiments (i wasn't part of it, i'm not a scientist nor do i know about it in detail), nothing travels faster than light, then how magnetic drives can be faster than optical drives...and applied to flash memory I think sooner or later RD will come back to optical storage maybe without rotation... Asa said it should be related to the file system (FAT32) and not the support itself... then I conclude the first code (code 1/2), doesn't support FAT32. exFat is the latest filesystem from Microsoft aims at flash storage devices. Pascal -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any
RE: $$Excel-Macros$$ Re: Hi friends, I want to know
If you don't want to open the other workbook and you don't want to usa VBA, I don't know how to COPY a worksheet from one workbook to another, but you can link to desired values. For example, in cell A1 of your destination sheet/workbook, type: =[OtherWorkbookName.XLS]Sheet1!A1 To rerieve the value from cell A1 on the worksheet Sheet1 in the file OtherworkbookName.XLS. If all you want is a copy, I don't understand why you don't want to open the other workbook though. OH, You can also use the QueryTable feature to link to a whole table of data (by default uses ODBC that someone else mentioned, in the background, but not VBA). Asa From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of anil kumar Sent: Sunday, April 29, 2012 10:21 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Hi friends, I want to know Hello sir, First of all thanks, secondly I don't know vba so can't use it. is excel have any formula. plz tell me. Thanks Regards Anil -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com