Consolidating Data from >20 workbooks, each workbook Containing >70 worksheets
- Selva V Pasupathy, HSBC Global Resourcing, Hyderabad
|
Option Explicit ‘___________________________________________________________________________ ‘*************************************************************************** ‘* ‘* MODULE NAME: Copy Data from all Excel Files in a Folder ‘* AUTHOR: Selva V Pasupathy, HSBC Global Resourcing, Hyderabad ‘* ‘* CONTACT: socko@rediffmail.com ‘* WEB SITE: http://socko.wordpress.com ‘* ‘* DESCRIPTION: The following visual basic code was written when ‘* I wanted to consolidate the data from 26 workbooks ‘* and in each workbook, there were are 77 sheets. It ‘* would have been a very difficult task, if I had to ‘* do it manually. I believe this procedure will be ‘* useful to somebody else ‘* NOTES: ‘* Before using the codes, you can change all the variables like, ‘* Folder, File , SearchString, SearchSubfolders (true / false), ‘* and other variables. ‘*———————————————————————— ‘* Other Information ‘* ‘* UPDATES: ‘* DATE COMMENTS ‘* 16 Nov 2008 You are free to use , change, and modify this code. ‘___________________________________________________________________________ ‘*************************************************************************** Function ListFiles(sCount As Integer, ByVal sFldr As String, _ With Application.FileSearch End Function Sub Consolidate_Data() myFolder = “J:\GB Project\CONSOLIDATED” With ThisWorkbook.Sheets(“data”) |
Restrict entry into Textbox Control
When you are working with a userform to create a userinterface for data input, sometimes you would like to restrict the users to input numbers only in some of the textbox controls. However, many a times you would find accidently or otherwise, you find text entered into the database. You can use the following code to make sure that anything typed in textbox1 other than numbers 0 – 9 will not be accepted. Thus you can successfully implement to reduce errors in your database.
|
Private Sub TextBox1_KeyPress( _ ByVal KeyAscii As MSForms.ReturnInteger) ‘ This code restricts any text in textbox1 other than ‘ integer 0 – 9 …. Select Case KeyAscii Case Asc(“0″) To Asc(“9″) Case Else KeyAscii = 0 End Select End Sub |
TED: Ideas worth spreading
by Selva V Pasupathy, HSBC Technology & Services, Hyderabad.
I incidentally happened to visit a www.ted.com and I found that it was wonderful. TED (Technology, Entertainment, Design) is an invitation-only event where the world’s leading thinkers and doers gather to find inspiration. I viewed some of the video’s by Tony Robbins, which were really good. I hope someone benefits from these links.
- A 3-minute story of mixed emoticons
- A 4-minute medley on the music wars
- A beautiful new theory of everything
- A brief digression on matters of lost time
- A brief history of violence
- A cello performance that casts a spell
- A comic send-up of TED2006
- A different way to think about creative genius
- A digital library, free to the world
- A girl, a photograph, a homecoming
- A guided tour of the Ghost Map
- A happy song about global warming
- A hero of the Congo Basin forest
- A journey to the center of your mind
- A library of human imagination
- A life of fascinations
- A lyrical view of life on Earth
- A meditation on hope
- A mockingbird remix of TED2006
- A musical sensation from Venezuela
- A new vision for refrigeration
- A parable for Kenya
- A performance merging dance and biology
- A powerful idea about teaching ideas
- A secular, scientific rebuttal to Rick Warren
- A surprising idea for “solving” climate change
- A surprising look at celebrity
- A surprising parable of foie gras
- A vision for TED
- A voyage of DNA, genes and the sea
- Africa as an investment
- African fractals, in buildings and braids
- After the gold rush, there’s innovation ahead
- All roads lead to Rome Antics
- An atheist’s call to arms
- An inside tour of the world’s biggest supercollider
- An introduction to genomics
- Ants, terrorism, and the awesome power of memes
- Apes that write, start fires and play Pac-Man
- Architecture is a new way to connect to the world
- Architecture is a special effects machine
- Architecture, modern and romantic
- Are children’s carseats necessary?
- Art with wire, thread, sugar, chocolate
- Asking big questions about the universe
- Beauty and truth in physics
- Becoming Buddha — on the Web
- Beyond the crisis, mindboggling science and the arrival of Homo evolutis
- Brain magic
- Brain science is about to fundamentally change computing
- Breath, music, passion
- Bringing One Laptop per Child to Colombia: TED in the Field
- Bringing world-class health care to the poorest
- Building a commodities market in Ethiopia
- Building a family tree for all humanity
- Building a home for the Clock of the Long Now
- Building on the green agenda
- Building the Ground Zero viewing platform
- BumpTop desktop is a beautiful mess
- Can kids teach themselves?
- Can we domesticate germs?
- Can we know our own minds?
- Casting spells with DNA
- Catch Sputnik mania!
- Celebrating the camel
- Celebrating the scientific experiment
- Chalking it up to the blank slate
- Cheetahs vs. Hippos for Africa’s future
- Classical music with shining eyes
- Climbing the world’s biggest trees
- Close-up card magic
- Come play with Pleo the dinosaur
- Creating objects that tell stories
- Creating tech marvels out of a $40 Wii Remote
- Creativity, fulfillment and flow
- Cultures at the far edge of the world
- Dazzling set by 11-year-old violinist
- Debunking third-world myths with the best stats you’ve ever seen
- Decoding the future with genomics
- Design and the elastic mind
- Design is in the details
- Design, discovery and humor
- Designing the Seattle Central Library
- Digging for humanity’s origins
- Do all languages have a common ancestor?
- Do schools kill creativity?
- Do the green thing
- Documenting our endangered cultures
- Does happiness have a price tag?
- Dog-friendly dog training
- Earth in its final century?
- Earth’s mass extinctions
- Educating a new generation of African leaders
- Entrepreneurs are the future of space flight
- Exploring the frontiers of happiness
- Exploring the ocean’s hidden worlds
- Fantastic voyage inside a cell
- Fashion, passion, and about a million other things
- Fiddling in reel time
- Fighting injustice with a videocamera
- Finding happiness in body and soul
- Finding the origins of humanity
- Fly me to the moons of Saturn
- Fly the seas on a submarine with wings
- Flying on solar wings
- Four American characters
- From 1984, 4 predictions about the future (3 of them correct)
- From 1990, defending a vision for architecture
- Getting cars off the road and data into the skies
- Goodbye, textbooks; hello, open-source learning
- Great cars are Art
- Great design is serious (not solemn)
- Great ideas for finding new energy
- Greening the ghetto
- Habits of happiness
- Hardware solutions to everyday problems
- Healing and other natural wonders
- Health, population and the human mind
- Heartrending pictures of AIDS
- Help fight local warming
- Help me bring music to kids worldwide (TED Prize winner!)
- Helping humans and animals live together in Africa
- Here’s how to protect the blue heart of the planet (TED Prize winner!)
- Hip-hop dance and a little magic
- How a ragtag band created Wikipedia
- How Benjamin Button got his face
- How blogs are building a friendlier world
- How calculus is changing architecture
- How cooperation (eventually) trumps conflict
- How could God have allowed the tsunami?
- How creativity is being strangled by the law
- How do ants know what to do?
- How does technology evolve? Like we did
- How engineers learn from evolution
- How great design makes ideas new
- How I built my family a windmill
- How I got my new hip
- How I’m trying to change the world now
- How juries are fooled by statistics
- How ordinary people become monsters … or heroes
- How robots will invade our lives
- How science is like democracy
- How technology’s accelerating power will transform us
- How things in nature tend to sync up
- How to fix broken states
- How to help Africa? Do business there
- How to listen to music with your whole body
- How to survive a nuclear attack
- How would you feel if you lost everything?
- Humanity’s biggest problems aren’t what you think they are
- Hunting the next killer virus
- I walk the Earth
- Idea + square = origami
- Inside the Google machine
- Inspired ideas for a sustainable future
- Institutions vs. collaboration
- Inventing the next amazing thing
- Investing in Africa’s own solutions
- Is 4 a.m. the new midnight?
- Jaw-dropping Photosynth demo
- Journey to the center of the Earth … and beyond!
- Juggling rhythm and motion
- Learning from past presidents in moments of crisis
- Learning the stories of Africa
- Let’s have a deeper discussion on aid
- Let’s look for life in the outer solar system
- Let’s take a new look at African aid
- Let’s take a nuclear-powered rocket to Saturn
- Leveraging big ideas to make change
- Life at 30,000 feet
- Life on Mars? Let’s look in the caves
- Lightning calculation and other “Mathemagic”
- Living a life of purpose
- Look! Up in the sky! It’s Virtual Earth!
- Looking inside the brain in real time
- Magical improv from 14-year-old pianist
- Making a computer that works like the brain
- Making movies that make change
- Measuring the fastest animal on earth
- Memes and “temes”
- My dream about the future of medicine
- My history of electroshock therapy
- My journey in design, from tofu to RISD
- My stroke of insight
- My year of living biblically
- Nature vs. humans, and what we can do about it
- New insights on poverty and life around the world
- New prosthetic arm for veterans
- New thinking on the climate crisis
- Nice building. Then what?
- On the verge of creating synthetic life
- One Laptop per Child, two years on
- Open-source economics
- Origami, blindfolded and to music
- Our cell phones, ourselves
- Our priorities for saving the world
- Photography connects us with the world
- Picturing excess
- Playing the Cape Breton fiddle
- Politics and religion are technologies
- Predicting the next 5,000 days of the web
- Presenting the Orb
- Products (and toys) from the future
- Rebuilding America, one slide show at a time
- Re-creating great performances
- Redefining the dictionary
- Reinventing the car
- Reinventing the school lunch
- Releasing the music in your head
- Rethinking the music video
- Rich hospital, poor hospital
- Robots that are “self-aware”
- Rolling along, helping students and the third world
- Running on high-tech legs
- Sailing the Great Pacific Garbage Patch
- Scenes from “The War Tapes”
- Sculpture that’s truly moving
- Second Life, where anything is possible
- Secrets of movement, from geckos and roaches
- Secrets of success in 8 words, 3 minutes
- Security and insecurity
- Seeking salvation and profit in greentech
- Shaking hands with the devil
- Siftables, the toy blocks that think
- Simple designs that could save millions of childrens’ lives
- Simplicity patterns
- Sing a song of sustainable cities
- Sliced bread and other marketing delights
- Slowing down in a world built for speed
- Sound stylings by a human beatbox
- Spinning a story of Mama
- Stephen Hawking hits zero g
- Swim with giant sunfish in the open ocean
- Tackling poverty with “patient capital”
- Take a ride in the Skycar
- Taking the next giant leap in space
- Tales of passion
- Talking and squawking TED2006
- Technology, faith and human shortcomings
- Technology’s Long Tail
- TED Prize wish: Finding new cures for migraine, depression, malpractice
- TED Prize wish: Help build the Encyclopedia of Life
- TED Prize wish: Help stop the next pandemic
- TED Prize wish: Join my call to action on Africa
- TED Prize wish: Let’s build a health care system in Rwanda
- TED Prize wish: Open-source architecture to house the world
- TED Prize wish: Share a vital story with the world
- TED Prize wish: Share the story of Earth’s manufactured landscapes
- TED Prize wish: Unite the world on Pangea Day, a global day of film
- Telling stories of our shared humanity
- The “shadow cities” of the future
- The amazing intelligence of crows
- The art of baking bread
- The art of collecting stories
- The art of creating creatures
- The astonishing promise of DNA folding
- The beckoning promise of personal fabrication
- The birth of the computer
- The brain in love
- The case for informed optimism
- The coming neurological epidemic
- The deep oceans: a ribbon of life
- The design of the universe
- The double helix and today’s DNA mysteries
- The future of design is human-centered
- The illustrated woman
- The Jill and Julia Show
- The joy of rockets
- The lost art of letter-writing
- The making of an African activist
- The moment when social media became the news
- The mystery box
- The omnivore’s next dilemma
- The paradox of choice
- The Pentagon’s new map for war and peace
- The playful search for beauty
- The power and beauty of organic design
- The power of glamour
- The power of saying thank you
- The power of the mobile phone to end poverty
- The power to connect the world
- The powerful link between creativity and play
- The real crisis? We stopped being wise
- The real difference between liberals and conservatives
- The rise of the amateur professional
- The science of love, and the future of women
- The science of scent
- The search for dark energy and dark matter
- The stories and song of Appalachia
- The story of a passionate life
- The story of Ezra, a child soldier
- The story of the Mars Rovers
- The stuff of thought
- The tragedy of suburbia
- The true face of Leonardo Da Vinci?
- The truly soft side of software
- The universe is queerer than we can suppose
- The universe on a string
- The vision behind One Laptop Per Child
- The Web and the city
- The Web and TV, a sibling rivalry
- The Web’s secret stories
- The wisdom of designing Cradle to Cradle
- The wonders of Zulu wire art
- The world now eats (and dies) like Americans
- The worldwide web of belief and ritual
- Theremin, the untouchable music
- Things I have learned in my life so far
- Three things to know before you ski to the North Pole
- Tidying up art
- Tools for building a better world
- Tourist snapshots from North Korea
- Toys that make worlds
- Treating design as art
- Understanding comics
- Underwater astonishments
- Unveiling the genius of multi-touch interface design
- Use my photographs to stop the worldwide XDR-TB epidemic
- Using biology to make better animation
- Wake up! It’s They Might Be Giants
- Way-new collaboration
- Ways of seeing
- We must win the oil endgame
- Welcome to Nollywood
- Welcome to Vaudeville 2.0
- What can fossils teach us?
- What do consumers really want?
- What do we really know about the spread of AIDS?
- What I’m worried about, what I’m excited about
- What is our place in the cosmos?
- What makes a building unique?
- What positive psychology can help you become
- What separates us from the apes?
- What we can learn from spaghetti sauce
- What’s so funny about the Web?
- What’s wrong with what we eat
- When it comes to tech, simplicity sells
- Where does creativity hide?
- Where have the bees gone?
- Who was General Tso? and other mysteries of American Chinese food
- Why a free press is the best investment
- Why are we happy? Why aren’t we happy?
- Why aren’t we all Good Samaritans?
- Why can’t we grow new body parts?
- Why can’t we grow new energy?
- Why design?
- Why do crack dealers still live with their moms?
- Why newspapers still matter (and why tech news belongs on the front page)
- Why people believe strange things
- Why societies collapse
- Why squatter cities are a good thing
- Why the search for alien intelligence matters (TED Prize winner!)
- Why we age and how we can avoid it
- Why we do what we do, and how we can do it better
- Why we don’t understand as much as we think we do
- Why we know less than ever about the world
- Will videogames become better than life?
- WorldWide Telescope
- Yes, design can make you happy
- Your brain is badly wired — enjoy it!
- Your genes are not your fate
Use BuiltIn Dialogs in Excel
Selva V Pasupathy, HSBC Global Resourcing, Hyderabad
Rather than designing a userform for a routine tasks to be performed by a user on excel, we can use 200+ builtin dialogs provided by excel. The code would be as follows
Application.Dialogs(xlDialogSaveAs).Show
A tabel with various xlbuiltindialogs, constant and description is given below:
| Name | Constant Value | Description |
|---|---|---|
| xlDialogActivate | 103 | Activate dialog box |
| xlDialogActiveCellFont | 476 | Active Cell Font dialog box |
| xlDialogAddChartAutoformat | 390 | Add Chart Autoformat dialog box |
| xlDialogAddinManager | 321 | Addin Manager dialog box |
| xlDialogAlignment | 43 | Alignment dialog box |
| xlDialogApplyNames | 133 | Apply Names dialog box |
| xlDialogApplyStyle | 212 | Apply Style dialog box |
| xlDialogAppMove | 170 | AppMove dialog box |
| xlDialogAppSize | 171 | AppSize dialog box |
| xlDialogArrangeAll | 12 | Arrange All dialog box |
| xlDialogAssignToObject | 213 | Assign To Object dialog box |
| xlDialogAssignToTool | 293 | Assign To Tool dialog box |
| xlDialogAttachText | 80 | Attach Text dialog box |
| xlDialogAttachToolbars | 323 | Attach Toolbars dialog box |
| xlDialogAutoCorrect | 485 | Auto Correct dialog box |
| xlDialogAxes | 78 | Axes dialog box |
| xlDialogBorder | 45 | Border dialog box |
| xlDialogCalculation | 32 | Calculation dialog box |
| xlDialogCellProtection | 46 | Cell Protection dialog box |
| xlDialogChangeLink | 166 | Change Link dialog box |
| xlDialogChartAddData | 392 | Chart Add Data dialog box |
| xlDialogChartLocation | 527 | Chart Location dialog box |
| xlDialogChartOptionsDataLabelMultiple | 724 | Chart Options DataLabel Multiple dialog box |
| xlDialogChartOptionsDataLabels | 505 | Chart Options DataLabels dialog box |
| xlDialogChartOptionsDataTable | 506 | Chart Options DataTable dialog box |
| xlDialogChartSourceData | 540 | Chart SourceData dialog box |
| xlDialogChartTrend | 350 | Chart Trend dialog box |
| xlDialogChartType | 526 | Chart Type dialog box |
| xlDialogChartWizard | 288 | ChartWizard dialog box |
| xlDialogCheckboxProperties | 435 | Checkbox Properties dialog box |
| xlDialogClear | 52 | Clear dialog box |
| xlDialogColorPalette | 161 | Color Palette dialog box |
| xlDialogColumnWidth | 47 | Column Width dialog box |
| xlDialogCombination | 73 | Combination dialog box |
| xlDialogConditionalFormatting | 583 | Conditional Formatting dialog box |
| xlDialogConsolidate | 191 | Consolidate dialog box |
| xlDialogCopyChart | 147 | Copy Chart dialog box |
| xlDialogCopyPicture | 108 | Copy Picture dialog box |
| xlDialogCreateList | 796 | Create List dialog box |
| xlDialogCreateNames | 62 | Create Names dialog box |
| xlDialogCreatePublisher | 217 | Create Publisher dialog box |
| xlDialogCustomizeToolbar | 276 | Customize Toolbar dialog box |
| xlDialogCustomViews | 493 | Custom Views dialog box |
| xlDialogDataDelete | 36 | Data Delete dialog box |
| xlDialogDataLabel | 379 | Data Label dialog box |
| xlDialogDataLabelMultiple | 723 | Data Label Multiple dialog box |
| xlDialogDataSeries | 40 | Data Series dialog box |
| xlDialogDataValidation | 525 | Data Validation dialog box |
| xlDialogDefineName | 61 | Define Name dialog box |
| xlDialogDefineStyle | 229 | Define Style dialog box |
| xlDialogDeleteFormat | 111 | Delete Format dialog box |
| xlDialogDeleteName | 110 | Delete Name dialog box |
| xlDialogDemote | 203 | Demote dialog box |
| xlDialogDisplay | 27 | Display dialog box |
| xlDialogDocumentInspector | 862 | Document Inspector dialog box |
| xlDialogEditboxProperties | 438 | Editbox Properties dialog box |
| xlDialogEditColor | 223 | Edit Color dialog box |
| xlDialogEditDelete | 54 | Edit Delete dialog box |
| xlDialogEditionOptions | 251 | Edition Options dialog box |
| xlDialogEditSeries | 228 | Edit Series dialog box |
| xlDialogErrorbarX | 463 | Errorbar X dialog box |
| xlDialogErrorbarY | 464 | Errorbar Y dialog box |
| xlDialogErrorChecking | 732 | Error Checking dialog box |
| xlDialogEvaluateFormula | 709 | Evaluate Formula dialog box |
| xlDialogExternalDataProperties | 530 | External Data Properties dialog box |
| xlDialogExtract | 35 | Extract dialog box |
| xlDialogFileDelete | 6 | File Delete dialog box |
| xlDialogFileSharing | 481 | File Sharing dialog box |
| xlDialogFillGroup | 200 | Fill Group dialog box |
| xlDialogFillWorkgroup | 301 | Fill Workgroup dialog box |
| xlDialogFilter | 447 | Dialog Filter dialog box |
| xlDialogFilterAdvanced | 370 | Filter Advanced dialog box |
| xlDialogFindFile | 475 | Find File dialog box |
| xlDialogFont | 26 | Font dialog box |
| xlDialogFontProperties | 381 | Font Properties dialog box |
| xlDialogFormatAuto | 269 | Format Auto dialog box |
| xlDialogFormatChart | 465 | Format Chart dialog box |
| xlDialogFormatCharttype | 423 | Format Charttype dialog box |
| xlDialogFormatFont | 150 | Format Font dialog box |
| xlDialogFormatLegend | 88 | Format Legend dialog box |
| xlDialogFormatMain | 225 | Format Main dialog box |
| xlDialogFormatMove | 128 | Format Move dialog box |
| xlDialogFormatNumber | 42 | Format Number dialog box |
| xlDialogFormatOverlay | 226 | Format Overlay dialog box |
| xlDialogFormatSize | 129 | Format Size dialog box |
| xlDialogFormatText | 89 | Format Text dialog box |
| xlDialogFormulaFind | 64 | Formula Find dialog box |
| xlDialogFormulaGoto | 63 | Formula Goto dialog box |
| xlDialogFormulaReplace | 130 | Formula Replace dialog box |
| xlDialogFunctionWizard | 450 | Function Wizard dialog box |
| xlDialogGallery3dArea | 193 | Gallery 3D Area dialog box |
| xlDialogGallery3dBar | 272 | Gallery 3D Bar dialog box |
| xlDialogGallery3dColumn | 194 | Gallery 3D Column dialog box |
| xlDialogGallery3dLine | 195 | Gallery 3D Line dialog box |
| xlDialogGallery3dPie | 196 | Gallery 3D Pie dialog box |
| xlDialogGallery3dSurface | 273 | Gallery 3D Surface dialog box |
| xlDialogGalleryArea | 67 | Gallery Area dialog box |
| xlDialogGalleryBar | 68 | Gallery Bar dialog box |
| xlDialogGalleryColumn | 69 | Gallery Column dialog box |
| xlDialogGalleryCustom | 388 | Gallery Custom dialog box |
| xlDialogGalleryDoughnut | 344 | Gallery Doughnut dialog box |
| xlDialogGalleryLine | 70 | Gallery Line dialog box |
| xlDialogGalleryPie | 71 | Gallery Pie dialog box |
| xlDialogGalleryRadar | 249 | Gallery Radar dialog box |
| xlDialogGalleryScatter | 72 | Gallery Scatter dialog box |
| xlDialogGoalSeek | 198 | Goal Seek dialog box |
| xlDialogGridlines | 76 | Gridlines dialog box |
| xlDialogImportTextFile | 666 | Import Text File dialog box |
| xlDialogInsert | 55 | Insert dialog box |
| xlDialogInsertHyperlink | 596 | Insert Hyperlink dialog box |
| xlDialogInsertObject | 259 | Insert Object dialog box |
| xlDialogInsertPicture | 342 | Insert Picture dialog box |
| xlDialogInsertTitle | 380 | Insert Title dialog box |
| xlDialogLabelProperties | 436 | Label Properties dialog box |
| xlDialogListboxProperties | 437 | Listbox Properties dialog box |
| xlDialogMacroOptions | 382 | Macro Options dialog box |
| xlDialogMailEditMailer | 470 | Mail Edit Mailer dialog box |
| xlDialogMailLogon | 339 | Mail Logon dialog box |
| xlDialogMailNextLetter | 378 | Mail Next Letter dialog box |
| xlDialogMainChart | 85 | Main Chart dialog box |
| xlDialogMainChartType | 185 | Main Chart Type dialog box |
| xlDialogMenuEditor | 322 | Menu Editor dialog box |
| xlDialogMove | 262 | Move dialog box |
| xlDialogMyPermission | 834 | My Permission dialog box |
| xlDialogNameManager | 977 | NameManager dialog box |
| xlDialogNew | 119 | New dialog box |
| xlDialogNewName | 978 | NewName dialog box |
| xlDialogNewWebQuery | 667 | New Web Query dialog box |
| xlDialogNote | 154 | Note dialog box |
| xlDialogObjectProperties | 207 | Object Properties dialog box |
| xlDialogObjectProtection | 214 | Object Protection dialog box |
| xlDialogOpen | 1 | Open dialog box |
| xlDialogOpenLinks | 2 | Open Links dialog box |
| xlDialogOpenMail | 188 | Open Mail dialog box |
| xlDialogOpenText | 441 | Open Text dialog box |
| xlDialogOptionsCalculation | 318 | Options Calculation dialog box |
| xlDialogOptionsChart | 325 | Options Chart dialog box |
| xlDialogOptionsEdit | 319 | Options Edit dialog box |
| xlDialogOptionsGeneral | 356 | Options General dialog box |
| xlDialogOptionsListsAdd | 458 | Options Lists Add dialog box |
| xlDialogOptionsME | 647 | OptionsME dialog box |
| xlDialogOptionsTransition | 355 | Options Transition dialog box |
| xlDialogOptionsView | 320 | Options View dialog box |
| xlDialogOutline | 142 | Outline dialog box |
| xlDialogOverlay | 86 | Overlay dialog box |
| xlDialogOverlayChartType | 186 | Overlay ChartType dialog box |
| xlDialogPageSetup | 7 | Page Setup dialog box |
| xlDialogParse | 91 | Parse dialog box |
| xlDialogPasteNames | 58 | Paste Names dialog box |
| xlDialogPasteSpecial | 53 | Paste Special dialog box |
| xlDialogPatterns | 84 | Patterns dialog box |
| xlDialogPermission | 832 | Permission dialog box |
| xlDialogPhonetic | 656 | Phonetic dialog box |
| xlDialogPivotCalculatedField | 570 | Pivot Calculated Field dialog box |
| xlDialogPivotCalculatedItem | 572 | Pivot Calculated Item dialog box |
| xlDialogPivotClientServerSet | 689 | Pivot Client Server Set dialog box |
| xlDialogPivotFieldGroup | 433 | Pivot Field Group dialog box |
| xlDialogPivotFieldProperties | 313 | Pivot Field Properties dialog box |
| xlDialogPivotFieldUngroup | 434 | Pivot Field Ungroup dialog box |
| xlDialogPivotShowPages | 421 | Pivot Show Pages dialog box |
| xlDialogPivotSolveOrder | 568 | Pivot Solve Order dialog box |
| xlDialogPivotTableOptions | 567 | Pivot Table Options dialog box |
| xlDialogPivotTableWizard | 312 | Pivot Table Wizard dialog box |
| xlDialogPlacement | 300 | Placement dialog box |
| xlDialogPrint | 8 | Print dialog box |
| xlDialogPrinterSetup | 9 | Printer Setup dialog box |
| xlDialogPrintPreview | 222 | Print Preview dialog box |
| xlDialogPromote | 202 | Promote dialog box |
| xlDialogProperties | 474 | Properties dialog box |
| xlDialogPropertyFields | 754 | Property Fields dialog box |
| xlDialogProtectDocument | 28 | Protect Document dialog box |
| xlDialogProtectSharing | 620 | Protect Sharing dialog box |
| xlDialogPublishAsWebPage | 653 | Publish As WebPage dialog box |
| xlDialogPushbuttonProperties | 445 | Pushbutton Properties dialog box |
| xlDialogReplaceFont | 134 | Replace Font dialog box |
| xlDialogRoutingSlip | 336 | Routing Slip dialog box |
| xlDialogRowHeight | 127 | Row Height dialog box |
| xlDialogRun | 17 | Run dialog box |
| xlDialogSaveAs | 5 | SaveAs dialog box |
| xlDialogSaveCopyAs | 456 | SaveCopyAs dialog box |
| xlDialogSaveNewObject | 208 | Save New Object dialog box |
| xlDialogSaveWorkbook | 145 | Save Workbook dialog box |
| xlDialogSaveWorkspace | 285 | Save Workspace dialog box |
| xlDialogScale | 87 | Scale dialog box |
| xlDialogScenarioAdd | 307 | Scenario Add dialog box |
| xlDialogScenarioCells | 305 | Scenario Cells dialog box |
| xlDialogScenarioEdit | 308 | Scenario Edit dialog box |
| xlDialogScenarioMerge | 473 | Scenario Merge dialog box |
| xlDialogScenarioSummary | 311 | Scenario Summary dialog box |
| xlDialogScrollbarProperties | 420 | Scrollbar Properties dialog box |
| xlDialogSearch | 731 | Search dialog box |
| xlDialogSelectSpecial | 132 | Select Special dialog box |
| xlDialogSendMail | 189 | Send Mail dialog box |
| xlDialogSeriesAxes | 460 | Series Axes dialog box |
| xlDialogSeriesOptions | 557 | Series Options dialog box |
| xlDialogSeriesOrder | 466 | Series Order dialog box |
| xlDialogSeriesShape | 504 | Series Shape dialog box |
| xlDialogSeriesX | 461 | Series X dialog box |
| xlDialogSeriesY | 462 | Series Y dialog box |
| xlDialogSetBackgroundPicture | 509 | Set Background Picture dialog box |
| xlDialogSetPrintTitles | 23 | Set Print Titles dialog box |
| xlDialogSetUpdateStatus | 159 | Set Update Status dialog box |
| xlDialogShowDetail | 204 | Show Detail dialog box |
| xlDialogShowToolbar | 220 | Show Toolbar dialog box |
| xlDialogSize | 261 | Size dialog box |
| xlDialogSort | 39 | Sort dialog box |
| xlDialogSortSpecial | 192 | Sort Special dialog box |
| xlDialogSplit | 137 | Split dialog box |
| xlDialogStandardFont | 190 | Standard Font dialog box |
| xlDialogStandardWidth | 472 | Standard Width dialog box |
| xlDialogStyle | 44 | Style dialog box |
| xlDialogSubscribeTo | 218 | Subscribe To dialog box |
| xlDialogSubtotalCreate | 398 | Subtotal Create dialog box |
| xlDialogSummaryInfo | 474 | Summary Info dialog box |
| xlDialogTable | 41 | Table dialog box |
| xlDialogTabOrder | 394 | Tab Order dialog box |
| xlDialogTextToColumns | 422 | Text To Columns dialog box |
| xlDialogUnhide | 94 | Unhide dialog box |
| xlDialogUpdateLink | 201 | Update Link dialog box |
| xlDialogVbaInsertFile | 328 | VBA Insert File dialog box |
| xlDialogVbaMakeAddin | 478 | VBA Make Addin dialog box |
| xlDialogVbaProcedureDefinition | 330 | VBA Procedure Definition dialog box |
| xlDialogView3d | 197 | View 3D dialog box |
| xlDialogWebOptionsBrowsers | 773 | Web Options Browsers dialog box |
| xlDialogWebOptionsEncoding | 686 | Web Options Encoding dialog box |
| xlDialogWebOptionsFiles | 684 | Web Options Files dialog box |
| xlDialogWebOptionsFonts | 687 | Web Options Fonts dialog box |
| xlDialogWebOptionsGeneral | 683 | Web Options General dialog box |
| xlDialogWebOptionsPictures | 685 | Web Options Pictures dialog box |
| xlDialogWindowMove | 14 | Window Move dialog box |
| xlDialogWindowSize | 13 | Window Size dialog box |
| xlDialogWorkbookAdd | 281 | Workbook Add dialog box |
| xlDialogWorkbookCopy | 283 | Workbook Copy dialog box |
| xlDialogWorkbookInsert | 354 | Workbook Insert dialog box |
| xlDialogWorkbookMove | 282 | Workbook Move dialog box |
| xlDialogWorkbookName | 386 | Workbook Name dialog box |
| xlDialogWorkbookNew | 302 | Workbook New dialog box |
| xlDialogWorkbookOptions | 284 | Workbook Options dialog box |
| xlDialogWorkbookProtect | 417 | Workbook Protect dialog box |
| xlDialogWorkbookTabSplit | 415 | Workbook Tab Split dialog box |
| xlDialogWorkbookUnhide | 384 | Workbook Unhide dialog box |
| xlDialogWorkgroup | 199 | Workgroup dialog box |
| xlDialogWorkspace | 95 | Workspace dialog box |
| xlDialogZoom | 256 | Zoom dialog box |
To download an example workbook CLICK HERE
Set Excel Document Properties
Somebody asked me whether it is possible to change the built document properties programmatically, that we can access for excel by going to worksheet menu bar… file >> properties… The Document Property window pops up and you can set the built in document properties by typing out on controls in summary tab. I thought it wont be possible, but then I found a way that this can be done.
I have listed the code below…
Option Explicit
Private Sub cmdAssign_Click()
Dim i As Integer
For i = 0 To Me.Controls.Count – 1
If UCase$(TypeName(Controls(i))) = “TEXTBOX” Then
With ActiveWorkbook
.BuiltinDocumentProperties(Mid(Me.Controls(i).Name, 4, 255)) = Me.Controls(i).Text
Me.Controls(i).Text = “”
End With
End If
Next i
MsgBox “Document Properties Successfully Done “
End Sub
Private Sub cmdCancel_Click()
Dim msg1
msg1 = MsgBox(“Are you sure you want to quit this form?”, vbYesNo, “Exit This Form”)
If msg1 = vbYes Then
Unload Me
End If
End Sub
To Download the example codes on userform CLICK HERE
To Download Example workbook Demonstrating the above code CLICK HERE
Check if a File name is more than 90 days old, & Delete
Selva V Pasupathy, HSBC Global Resourcing, Hyderabad
|
Option Explicit ‘ CODE TO COMPARE IF ANY FILENAME IS > 90 DAYS OLD Const Files_Location = “J:\Falcon\Management\INFILL REPORTS\FCD\” Sub Delete_Files(ByRef sDir As String) End Sub Sub testDeleteFiles() |
Access Resources
Selva V Pasupathy, HSBC Global Resourcing, Hyderabad
- Access Junkie (Jeff Conrad)
- Access Junkie (Jeff Conrad, Microsoft)
- Access Links, by Tom Wickerath
- Access MVP
- Access RunCommand Constants
- Access Team Blog
- Access-Freak (Oliver Stohr, freakazeud)
- Alex Dybenko
- Allen Browne’s tips for Microsoft Access
- Arvin Meyer
- Bob Larson’s Quick Tutorials
- Clint Covington: Software design, Microsoft Office Access
- Converting to Access 2007
- Database Solutions for Microsoft Access
- Dealing With The Trust Center (Access 2007)
- Jeff Conrad’s resources page
- Luke Chung and FMS Free Resources
- Lynn Trapp’s LT Computer Designs
- Microsoft Access Database Tools, Code Samples for the serious developer, by Bill Mosca
- Microsoft Communities
- Microsoft KnowledgeBase Search Page
- MVP Allen Browne’s tutorials
- Q-Built Solutions Web site for Microsoft Access
- Relational Database Design Articles, Tutorials and Tips
- Roger’s Access Library
- Stephen Lebans Website
- Steve Schapel’s Assorted Access Tips
- The Access Web
- The Access Web resources page
- Tina’s Tips to Get You Going
- Tom Wickerath’s page
- Tony’s Main Microsoft Access Page
- Tony’s Microsoft Access Blog
- Utter Access
- Utter Angel’s MS Access Downloads (Candace Tripp)
- Viescas Consulting Links & Downloads
- Yahoo! Tech Groups — MS Access Professionals