When you are in a worksheet in Excel you can hit F5, select a named ranged from the list, hit OK and Excel will highlight the areas that are included in the named range. My problem is the F5 feature only works for named ranges that have a 'Workbook'level scope. What I would like to do is write a macro that will GoTo the range name 'Report1PrintRange' on the ActiveSheet. Report1PrintRange has a 'Worksheet' level scope. Accordingly, I have the Report1PrintRange setupon several sheets.The sticky point for me is how to select the 'Report1PrintRange' on the ActiveSheet using VBA?
I don't want to 'hard wire' the sheet names into the macro, I want the macro to highlight (or select) the 'Report1PrintRange'on whatever worksheet happens to be active.Or there a way to get the 'Worksheet' level scoped named ranges to appear on the F5 list. I noticed they do appear on the F3 list.Any help would be appreciated.Regards.bob sutor. John,Your website and your books have been really helpful to me. I'm looking for a really comphrensive reference book on VBA and another in-depth book on understanding the Excel VBA object model. Could you recommend one of your other books for thesetwo areas?
I have your book entitled 'Excel 2010 Power Programming with VBA' and it is very helpful.Back to business:I put the code line into my VBA and got this error; 'Method 'Range' of object 'Global' failed', but when I added the apostrophes to the sheet name it worked:Range(' & ActiveSheet.Name & '!' & 'Report1PrintRange').ActivateThanks I was stumped.bob sutor. John,Your website and your books have been really helpful to me. I'm looking for a really comphrensive reference book on VBA and another in-depth book on understanding the Excel VBA object model. Could you recommend one of your other books for thesetwo areas?
I have your book entitled 'Excel 2010 Power Programming with VBA' and it is very helpful.Back to business:I put the code line into my VBA and got this error; 'Method 'Range' of object 'Global' failed', but when I added the apostrophes to the sheet name it worked:Range(' & ActiveSheet.Name & '!' & 'Report1PrintRange').ActivateThanks I was stumped.bob sutor.
Microsoft Excel 2010 VBA Programming Experience the Power of Visual Basic for Applications Programming in Microsoft ExcelTired of consolidating data from multiple worksheets or workbooks for your weekly or monthly reports and having to work on frequent task that is either too time-consuming or too cumbersome to continue doing manually in Excel?Why not consider using VBA to streamline your work. The good news is, you need not be a programmer to utilize or explore VBA. Just like Excel’s intrinsic functions, many VBA commands are at your disposal and they are relatively easy to implement and customize for your everyday purposes.
Anything you can do manually in Excel you can do with VBA and many things that Excel does not allow you to do manually, you can do with VBA. Furthermore, it provides you with a faster solution and minimises the risk of human error!This 3-day Excel VBA programming course guides participants with minimal programming knowledge to simplify their work in the Excel 2010 environment by automating many of the recurring or repetitive tasks.In this course, participants will learn how to records macro more effectively and how to use Excel VBA to automate procedures. Participants will create their own worksheet functions that Excel’s built-in functions do not provide for. Explore how to simplify the workbook’s look and feel for other users to use by creating customised form interface or create ActiveX controls on the worksheets.This course is forLearners who have prior and good knowledge of Excel 2007-2010 or for those who had attended our Microsoft Excel 2007 or 2010 Basic to Intermediate, and Advanced course.Public Sector - Div. 1, 2 & 3Private Sector - Applicable to AllCourse Outline. Introduction to Macro. VBA Editor.
Working with Objects and Built-in Functions. VBA Variables. Working with Sub Procedures and Functions. Conditions, Branches and Looping Control. Debugging and Error Handling.
ActiveX Controls in Worksheet. Userforms and Event ProceduresQuestions to Ask YourselfI’m very experienced in using an earlier version of Microsoft Excel; can I sign up for this course?Yes, you can.
As this is a course that focuses a lot in programming thus ONLY IF you have a good working knowledge of Microsoft Excel.Do I need to have programming knowledge or experience to take this course?No, you do not need any knowledge or experience in programming or VBA. Request for a Course DateIf none of our published course date is suitable for you or your staff, contact us at 6423-1183 and let us know when you need this course to be conducted and if it is possible we will do our best to make it happen!Request to Customise this CourseIf you require this course to be customised to better suit the training needs of your staff or to have this course conducted on a date not stated in our training calendar, contact us (Call us at 6423-1183) for a no obligation discussion. We would be most happy to assist and hear from you.Request for this Course to be Conducted at Your PremiseIt is definitely possible as long as it is conduction in Singapore. Call us at 6423-1130 and speak to any of your representatives and we would be work out an arrangement for you.Request for an Evening ClassCan't attend this course during office hours, contact us at 6423-1183 for possible evening or Saturday class arrangements. Microsoft Excel 2010 VBA Programming Experience the Power of Visual Basic for Applications Programming in Microsoft ExcelTired of consolidating data from multiple worksheets or workbooks for your weekly or monthly reports and having to work on frequent task that is either too time-consuming or too cumbersome to continue doing manually in Excel?Why not consider using VBA to streamline your work. The good news is, you need not be a programmer to utilize or explore VBA.
Just like Excel’s intrinsic functions, many VBA commands are at your disposal and they are relatively easy to implement and customize for your everyday purposes. Anything you can do manually in Excel you can do with VBA and many things that Excel does not allow you to do manually, you can do with VBA.
Furthermore, it provides you with a faster solution and minimises the risk of human error!This 3-day Excel VBA programming course guides participants with minimal programming knowledge to simplify their work in the Excel 2010 environment by automating many of the recurring or repetitive tasks.In this course, participants will learn how to records macro more effectively and how to use Excel VBA to automate procedures. Participants will create their own worksheet functions that Excel’s built-in functions do not provide for. Explore how to simplify the workbook’s look and feel for other users to use by creating customised form interface or create ActiveX controls on the worksheets.This course is forLearners who have prior and good knowledge of Excel 2007-2010 or for those who had attended our Microsoft Excel 2007 or 2010 Basic to Intermediate, and Advanced course.Public Sector - Div. Request for a Course DateIf none of our published course date is suitable for you or your staff, contact us at 6423-1130 and let us know when you need this course to be conducted and if it is possible we will do our best to make it happen!Request to Customise this CourseIf you require this course to be customised to better suit the training needs of your staff or to have this course conducted on a date not stated in our training calendar, contact us (Call us at 6423-1183) for a no obligation discussion. We would be most happy to assist and hear from you.Request for this Course to be Conducted at Your PremiseIt is definitely possible as long as it is conduction in Singapore.
Call us at 6423-1183 and speak to any of your representatives and we would be work out an arrangement for you.Request for an Evening ClassCan't attend this course during office hours, contact us at 6423-1130 for possible evening or Saturday class arrangements.