Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Simple question. Part of my workbook has numbered sheets (1,2, etc. - it has others as well). I would like to add sheets using a macro, calling them by the next number in the sequence - eg if the last sheet is 10, the next sheets should be named 11, 12, etc. (Sheets.Count for the last sheet is not the same as its name and can vary from workbook to workbook). If I capture the name of the last sheet (Sheets.Name), the macro deals with it as a string and thus I am encountering a problem raising its value. How does one do arithmetic on a string or more specifically, how does one convert a string into a number? Conversely, how would one change a number into a string (not needed for this macro, but generally useful to know)? --- Eugene |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Varaibles as both integer and String | Excel Programming | |||
String or integer? | Excel Programming | |||
Compare string with integer | Excel Programming | |||
Is there a function to convert a string representing an integer i. | Excel Programming | |||
How do I convert an integer variable to a string variable? | Excel Programming |