Link to home
Start Free TrialLog in
Avatar of ouestque
ouestqueFlag for United States of America

asked on

Excel VBA: VBA Code That Writes VBA Code

What VBA code would I need that writes "Call FunctionOrganizeData" in the "Private Sub Workbook_Open()" subroutine if "Call FunctionOrganizeData" does not exist there yet.
Avatar of Norie
Norie

Does Private Sub Workbook_Open() exist yet?
you must create the function before calling
ASKER CERTIFIED SOLUTION
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It's Chip Pearson :-)

It's Chip Pearson :-)
You're right, Paul Pearson is married to my first cousin, LOL.
Avatar of ouestque

ASKER

Awesome answer!! Thank you!
Glad to help :)