Hello All,
I'm just getting started with VBA - trying to teach myself. I was lent a book by a colleague and that's helped a lot, but I have an issue for this particular project that I can figure out. I'm sure it's a bit complex for a first time project, but I wanted to tackle something that would be useful.
There is a particular report we receive on a daily basis that has 2 separate worksheets. Each worksheet is fairly different, and we have to format them into a uniform template for upload into Access. I started with a user form, and it simply asks for the date of the report. I want the macro to pause until that information is received from the user, and then continue. Now, the date is needed in the formatting of both worksheets, so I would like to call on the same user form in in each macro - otherwise I would just write it into the "OK" button.
I hope this makes sense. Also, if it's not too much to ask - could any code provided be explained? It's easy to copy and paste - but I would like to understand it as well.
I'm just getting started with VBA - trying to teach myself. I was lent a book by a colleague and that's helped a lot, but I have an issue for this particular project that I can figure out. I'm sure it's a bit complex for a first time project, but I wanted to tackle something that would be useful.
There is a particular report we receive on a daily basis that has 2 separate worksheets. Each worksheet is fairly different, and we have to format them into a uniform template for upload into Access. I started with a user form, and it simply asks for the date of the report. I want the macro to pause until that information is received from the user, and then continue. Now, the date is needed in the formatting of both worksheets, so I would like to call on the same user form in in each macro - otherwise I would just write it into the "OK" button.
I hope this makes sense. Also, if it's not too much to ask - could any code provided be explained? It's easy to copy and paste - but I would like to understand it as well.