DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: Batch format editting in multiple sheets in multiple excel files in folder  (Read 15,414 times)

retz

  • Participant
  • Joined in 2014
  • *
  • Posts: 7
I'm not a coder, but I'm pretty sure there must be a way to get this done.... So the problem/task is the following:

I have a folder containing many excel files, which contain many sheets. My goal is to batch edit the formatting (font/size) of all sheets in all excel files without having to manually and individually do it for each excel file and each sheet contained in each said excel file. is there a way to do this??

Now, this here is a plus, but only if it's possible, on a separate folder I also have many excel files with many sheets, now, each sheet has a title on cell A1 which I would also like to format edit (font/size) since they are the title to each different subject represented in each different sheet, is it possible to batch edit the formatting in a specific cell for all files and its sheets??

Thank you whoever you are!!!

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
what fonts and sizes?
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

retz

  • Participant
  • Joined in 2014
  • *
  • Posts: 7
Times New Roman / 12

and for the title cells A1 in all the files and sheets Times new roman / 14

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
try this (excel vba macro)

tests OK here, but YMMV so try it on some test files first

any problems let me know

EDIT: redundant attachment removed
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
« Last Edit: July 28, 2014, 02:43 AM by Target »

retz

  • Participant
  • Joined in 2014
  • *
  • Posts: 7
Will do.. Thank you so very much!!!!!

retz

  • Participant
  • Joined in 2014
  • *
  • Posts: 7
Well, I got a strange message about updating the code to x64 bits which is my operating system... I will attach here a screen capture...

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
ahh, I only have x32 at work...

don't know if this will work or not (I can't test it) but try this (x64 only if anyone else wants to try it)

EDIT: redundant attachment removed
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
« Last Edit: July 28, 2014, 02:36 AM by Target »

retz

  • Participant
  • Joined in 2014
  • *
  • Posts: 7
Still gives me the same message...

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
sorry, I'm working blind here cos I can't test...

try this...

EDIT: redundant attachment removed
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
« Last Edit: July 28, 2014, 02:43 AM by Target »

retz

  • Participant
  • Joined in 2014
  • *
  • Posts: 7
Nop, it gave me the same message as before... Thanks for trying though, I really do appreciate it mate!!!

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
sorry, just had an AHA!! moment (that bit of code was unnecessary for this routine...)

Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

retz

  • Participant
  • Joined in 2014
  • *
  • Posts: 7
Oh hell yeah!!!! it worked like a frigging charm, you're the man!!!!!!
Thank you so very much, you have saved me so many hours worth of fool errands..

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
you're most welcome :Thmbsup:
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Well done, Target.  :Thmbsup:  I'll move this to the finished section.

Oh hell yeah!!!! it worked like a frigging charm, you're the man!!!!!!
Thank you so very much, you have saved me so many hours worth of fool errands..

If you have the means, don't hesitate to toss some DC credits Target's way.  =]

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
thanks skwire :Thmbsup:
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

Original address: https://www.donationcoder.com/forum/index.php?topic=38548.0