Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I have tried to split a piece of code into separate modules for ease of
knowing what each element does, however, having done this, not all the code works as expected. I'm work through the issues one by one but I'm stuck on transferring a file's name that's been saved in module 1 to module 2. Module 1 creates a new file and saves it with a unique name derived from the date and time, however, when I then run code in module 2, I'd like to display after saving this file again its name. I have declared Public FileName As String in module 1 but regardless what I do in module 2, I can't capture FileName declare in module 1. I have Option Explicit set in all modules and subs aren't set to Private. Any pointers welcome. Thanks, Rob |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
pass value to excel userform - is there a constructor? how to pass | Excel Programming | |||
Public, Private, Event modules, Forms modules,,, | Excel Programming | |||
Basic question - modules and class modules - what's the difference? | Excel Programming | |||
When to code in sheet or userform modules and when to use modules | Excel Programming | |||
Class Modules vs Modules | Excel Programming |