Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don't use this awkward construction:
"" & Define your variables as strings or use CStr() so they don't need to be implicitly coerced. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "Carlos" wrote in message ... hi Both, Thanks for the help, I manged to get round it in the end by creating another variable which referance the sheet i was looking for monthtotal = "" & monthopen & ".xls" Worksheets("Master").Select Sheets("Master").Copy After:=Workbooks(monthtotal).Sheets(1) I'm still learning, in fact this time last week I hadn't even looked a VBA coding so it's be a fast learning curve. I've read a little about the "DIM" function but don't really understand that side of it yet, so it's possibly that this would have worked but I'm yet to cover that ground. can you recomend any books or websites which help with explaining everything? I use the F1 key for definitions but sometimes these are just as complicated to understand. Thanks for your help on this!! Carl |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum if 2 variables | Excel Discussion (Misc queries) | |||
Not at all clear on use of variables and/or object variables | Excel Discussion (Misc queries) | |||
Storing variables in a macro and using those variables to performcalculations. | Excel Programming | |||
Variables... Help! | Excel Programming | |||
Variables | Excel Programming |