Hi, all.
I am new to all this. Played in xl some, enjoyed it. still playing. I want to enter text into 2 adjacent cells in one worksheet, then copy a template worksheet and name it the 2-cell text (first and last names). I can do the template copy, data entry, and rename by hand, but not by code. I think maybe naming the 2-cell section, then referencing the name in renaming the worksheet, but I can't figure out how to do this. I'm sorry if this has already been addressed. I looked, but didn't find any threads on it. If so, please redirect me. Thanks,
Alamo
4 1472
Hi, all.
I am new to all this. Played in xl some, enjoyed it. still playing. I want to enter text into 2 adjacent cells in one worksheet, then copy a template worksheet and name it the 2-cell text (first and last names). I can do the template copy, data entry, and rename by hand, but not by code. I think maybe naming the 2-cell section, then referencing the name in renaming the worksheet, but I can't figure out how to do this. I'm sorry if this has already been addressed. I looked, but didn't find any threads on it. If so, please redirect me. Thanks,
Alamo
Which part specifically is giving you the trouble?
You can just reference the sheet name and change it (for example Sheets("Sheet2").Name = MyValue).
Can't remember right now how to grab the cell values, sorry. Probably someone else will help further.
Which part specifically is giving you the trouble?
You can just reference the sheet name and change it (for example Sheets("Sheet2").Name = MyValue).
Can't remember right now how to grab the cell values, sorry. Probably someone else will help further.
Thank you. I am using a text box to enter a name in a worksheet. I then want to use this same name to create a new worksheet. Actully, it is a copy of a template that I need to rename. I have other things that I need to do with this same name, but I seem to be stumped at the worksheet. I can name it from a text box, but then I can't use the name for other things without reentering it as a data string. Any suggestions would be appreciated. Thanks
Thank you. I am using a text box to enter a name in a worksheet. I then want to use this same name to create a new worksheet. Actully, it is a copy of a template that I need to rename. I have other things that I need to do with this same name, but I seem to be stumped at the worksheet. I can name it from a text box, but then I can't use the name for other things without reentering it as a data string. Any suggestions would be appreciated. Thanks
hi
if you stored the value of this textbox as a variable ?
Thank you. I am using a text box to enter a name in a worksheet. I then want to use this same name to create a new worksheet. Actully, it is a copy of a template that I need to rename. I have other things that I need to do with this same name, but I seem to be stumped at the worksheet. I can name it from a text box, but then I can't use the name for other things without reentering it as a data string. Any suggestions would be appreciated. Thanks
Sorry, but I'm having difficulty in understanding what you're trying to do.
However, it sounds as though in your VB code, you need to create a global (Public) variable and place the name in that, so you can use it later.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Vanessa |
last post by:
Hi
In my VB Dot Net program, I'm using Automation to call Excel worksheet to do
some insert some data.
I have rename my worksheet to a name. eg. "ABC".
How do I insert the worksheet name &...
|
by: Vanessa |
last post by:
Hi
In my VB Dot Net program, I'm using Automation to call Excel worksheet to do
some insert some data.
I have rename my worksheet to a name. eg. "ABC".
How do I insert the worksheet name &...
|
by: Vanessa |
last post by:
Hi
In my VB Dot Net program, I'm using Automation to call Excel worksheet to do
some insert some data.
I have rename my worksheet to a name. eg. "ABC".
How do I insert the worksheet name &...
|
by: mix01 |
last post by:
Hi,
I am trying to get some VBA code working, but am preplex as to why it does not work. I would really appreciate any level of help.
Many thanks,
Mix01
Version of the program
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |