Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Excel – Get Worksheet Name

Posted on August 29, 2016 By David Kittell

If you’re like me you name your worksheets in Excel to help make more sense of the data. I try to incorporate a universal header in most of my Excel documents so this script helps me.

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

Example:
Say you have an Excel file to log all the domains you manage and the DNS that goes with each domain.

First worksheet could be the list of domains with basic creation/expiration dates and other quick reference information then click on the domain name and it takes you to a separate worksheet to give more detail on that domain.

This code below would lookup the specific domain name that you have selected and provide a basic header.

="DNS Records For - "&MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Excel Microsoft Office

Post navigation

Previous post
Next post

Related Posts

WordPress Database Information

Posted on September 14, 2015February 12, 2016

I plan to work more on this as it is rather nasty but as a work in progress notepad if you will this is the spot for now. — Not a pretty approach but this will help you get a listing of all active plugins DROP TABLE IF EXISTS wp_active_plugins;…

Read More

Web Crawler – PHP

Posted on August 9, 2013October 26, 2015

$target_url = $_GET["url"]; if (empty($target_url)) {$target_url = "http://kittell.net";} echo "<h1>" . $target_url . "</h1>"; $userAgent = ‘Googlebot/2.1 (http://www.googlebot.com/bot.html)’; // make the cURL request to $target_url $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_URL,$target_url); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); $html= curl_exec($ch); if…

Read More

SMTP Mail

Posted on February 22, 2013October 26, 2015

MailMessage m = new MailMessage(); SmtpClient sc = new SmtpClient(); m.From = new MailAddress("email@email.com", "Name Of Person"); m.To.Add(new MailAddress("email@email.com", "Name Of Person")); m.CC.Add(new MailAddress("email@email.com", "Name Of Person")); m.Subject = "Email Subject"; m.Body = sResultsHTML; AlternateView av = AlternateView.CreateAlternateViewFromString(sResultsHTML, null, MediaTypeNames.Text.Html); m.AlternateViews.Add(av); sc.Port = 25; sc.Host = "mail.email.com"; // Email server…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • PowerShell - IIS Remove Site
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - FTP Upload Directory With Sub-Directories

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • PowerShell - IIS Remove Site
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - FTP Upload Directory With Sub-Directories
  • Raspberry Pi - Remove Default Apps
  • PowerShell - Change Windows CD/DVD Drive Letter
©2025 David Kittell | WordPress Theme by SuperbThemes