vba - Is there a faster way to print a set of strings into a row in excel? -


my first pass @ involves using keyboard shortcut populate selected cell , row "may", "both", "derek", [today's date], , "uploaded". it's faster typing , want fast standard keyboard shortcuts; how can clean up?

sub autofillbothmay()      application.screenupdating = false      ' keyboard shortcut: ctrl+shift+b      activecell = "may"     activecell.offset(0, 1) = "both"     activecell.offset(0, 2) = "derek"     activecell.offset(0, 3) = date     activecell.offset(0, 4) = "uploaded"     application.screenupdating = true  end sub 

try as,

activecell.resize(1, 6) = array("may", "both", "derek", date, "uploaded", true) 

don't bother application.screenupdating.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -