473,327 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Name a Worksheet from clipboard?

2
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
Nov 14 '06 #1
4 1472
Killer42
8,435 Expert 8TB
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.
Nov 14 '06 #2
Alamo
2
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
Nov 16 '06 #3
albertw
267 100+
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 ?
Nov 18 '06 #4
Killer42
8,435 Expert 8TB
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.
Nov 19 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
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 &...
8
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 &...
8
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 &...
0
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
0
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
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...
0
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...
1
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.