Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 07-01-2014, 01:53 PM
chrisd2000 chrisd2000 is offline Can anyone here tweek this macro for renaming Excel files based on a cell's contents? Windows 7 64bit Can anyone here tweek this macro for renaming Excel files based on a cell's contents? Office 2007
Novice
Can anyone here tweek this macro for renaming Excel files based on a cell's contents?
 
Join Date: Jun 2014
Posts: 16
chrisd2000 is on a distinguished road
Default My IT guy says I have to know what the code does so that I know it's not malicious

My IT guy says I have to know what macro code does before I can use it so that I am not running malicious code. I got someone to alter it so that I can put in the Walmart calendar week into the filename. So I am trying to Google various parts of the code and I have found some useful explanations. Can you fill in the gaps? Here is what I found so far:

With Application.FileDialog(msoFileDialogFolderPicker) selects a folder from a certain path and import all the files inside it http://stackoverflow.com/questions/1...cker-using-vba

filepath = .SelectedItems(1) ' This part is involved in putting the filepath of the selected file in the variable filepath - See more at: http://lroedal.net/en/vba/read-from-....Od11itRI.dpuf or http://lroedal.net/en/vba/read-from-text-file

Set wb = Workbooks.Open - The line that starts with this text uses the file path you selected in FileDialog - http://stackoverflow.com/questions/2...-manipulate-it
Reply With Quote
 

Tags
batch rename, filename



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a macro rename Excel files based on a cellname? chrisd2000 Excel Programming 1 06-23-2014 06:50 PM
Can anyone here tweek this macro for renaming Excel files based on a cell's contents? Excel 2007, highlight entire row based on data found in one cell MSofficeBLUE Excel 2 10-15-2013 09:51 PM
Image Renaming Macro? jammer PowerPoint 5 07-15-2013 09:21 AM
Change formula cell range based on cell value Scoth Excel 4 10-25-2012 07:51 AM
Macro based on cell value ubns Excel Programming 1 05-07-2012 04:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft