Microsoft Office

Microsoft Office Questions? Ask a IT Expert for Support ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Microsoft Office
This answer was rated:

In a workbook, I have two sheets named “CPC” and “CE” The

In a workbook, I...
In a workbook, I have two sheets named “CPC” and “CE”
The user is on “CPC” sheet and places the cursor on the row of data that he wants to change
Then clicks on a Macro Button

Public RowtoChange as integer

Sub Load_Data_click()
Sheets(“CPC”).select

With activecell.currentregion
Rowtochange = ActiveCell.Row
End With

‘How does a macro load data from the Rowtochange selected on Sheet “CPC” and put various cells
‘from that row into sheet “CE”?

Load into cell B4 on sheet”CE” the contents of the cell on sheet “CPC” column A, Rowtochange
Load into cell B5 on sheet”CE” the contents of the cell on sheet “CPC” column B, Rowtochange
Load into cell B6 on sheet”CE” the contents of the cell on sheet “CPC” column C, Rowtochange

‘Then to end macro
Sheets(“CPC”).select
Sheets(“CE”).visible = True
Range(“B7”).Select
Sheets(“CPC”).Select
Activewindow.Selectsheets.visible = False

‘This leaves the user with sheet “CE” open, the cursor in cell B7 and the 3 cells above containing the contents of the selected row from sheet “CPC”

End Sub
Show More
Show Less
Ask Your Own Microsoft Office Question
Answered in 10 minutes by:
10/17/2013
The-PC-Guy
The-PC-Guy, Computer Manager
Category: Microsoft Office
Satisfied Customers: 2,034
Experience: 20 years experience providing remote computer support
Verified
Thanks for using JustAnswer. My name isXXXXX will do whatever I can to answer your question

Not sure what you are trying to accomplish with this macro, do you want me to copy the contents of 1 cell from one sheet to another. then hide a sheet and show the other selecting a specific cell.

If so the best bet is to start over from scratch and create a new macro for you.

And you want the macro to fire when someone clicks a button? or when they click a particular cell?
Ask Your Own Microsoft Office Question
Customer reply replied 4 years ago

The rows in the CPC file contain Product data records. The CPC file is formatted so all cells are locked but can be selected.


The user clicks on any cell within the row on the CPC sheet that he wants to change. I don't want the user to make any changes on the CPC sheet. I created the CE sheet to hold the current data in column B and the new data to be entered by the user for this product into column C. I need the cell contents on the CPC sheet of the selected row and columns A,B,C to be placed into sheet CE into cells B4, B5, and B6. I already have a macro to save this revised Product record into the CPC file and at the same time delete the old product record from the CPC file.


I don’t know how to make the macro move data from one cell in CPC to another cell on CE sheet per the above.



the following sub will do what you need

Sub MoveIT()

Dim sr As Long

sr = Selection.Row

Worksheets("CPC").Select
Range("A" & sr).Select
Selection.Copy
Worksheets("CE").Select
Range("B4").Select
Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone _
, SkipBlanks:=False, Transpose:=False

Worksheets("CPC").Select
Range("B" & sr).Select
Selection.Copy
Worksheets("CE").Select
Range("B5").Select
Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone _
, SkipBlanks:=False, Transpose:=False

Worksheets("CPC").Select
Range("C" & sr).Select
Selection.Copy
Worksheets("CE").Select
Range("B6").Select
Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone _
, SkipBlanks:=False, Transpose:=False

End Sub

it is getting late where I am, so If you have any problems let me know as I will check back tomarrrow and can make any corrections you need then.

otherwise

PLEASE REMEMBER TO RATE MY SERVICE

YOU DO SO WITH THE SMILEYS BENEATH THIS CHAT WINDOW
The-PC-Guy
The-PC-Guy, Computer Manager
Category: Microsoft Office
Satisfied Customers: 2,034
Experience: 20 years experience providing remote computer support
Verified
The-PC-Guy and 87 other Microsoft Office Specialists are ready to help you
Ask your own question now
did you get all of the above information to work?
Ask Your Own Microsoft Office Question
Ask The-PC-Guy Your Own Question
The-PC-Guy
The-PC-Guy
The-PC-Guy, Computer Manager
Category: Microsoft Office
Satisfied Customers: 2,034
2,034 Satisfied Customers
Experience: 20 years experience providing remote computer support

The-PC-Guy is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

jstinehelfer

jstinehelfer

Information Systems Manager

36 satisfied customers

A+ Comptia Certified computer repair

JasonJames122

JasonJames122

Computer Enthusiast

0 satisfied customers

I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business

Jess M.

Jess M.

Computer Support Specialist

684 satisfied customers

Computer Software Specialist for more than 10 years

The-PC-Guy

The-PC-Guy

Computer Manager

2,034 satisfied customers

20 years experience providing remote computer support

James K.

James K.

Consultant

260 satisfied customers

Technical Director of IT Company

IT Miro

IT Miro

Computer Scientist

156 satisfied customers

Bachelor's Degree in Information Technology, Microsoft Certified Professional

Chris L.

Chris L.

Support Specialist

143 satisfied customers

Certified Expert with over 10 years experience.

< Previous | Next >

Related Microsoft Office Questions
Since earlier this afternoon, I cannot open ANY of my Word
Since earlier this afternoon, I cannot open ANY of my Word .docx files, including files I've opened before. I keep getting a message about possible invalid files names (they're not invalid) as well as… read more
Jason Jones
Jason Jones
AAS Information Technology
6,316 satisfied customers
I'm looking for an excel formula to help me out with some
I'm looking for an excel formula to help me out with some marketing. I do direct marketing to homeowners and I download a spreadsheet from the County tax website to do the mailings. But the County sit… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
I need to download Microsoft Office. Had computer problems
I need to download Microsoft Office. Had computer problems and all my Programs had to be removed. Purchased Office online about March or April … read more
Viet - Computer Tech
Viet - Computer Tech
Computer Technican
Bachelor\u0027s Degree
952 satisfied customers
I have Microsoft office/exel/powerpoint on a different
hi, i have Microsoft office/exel/powerpoint on a different computer but i don't have my product key to add it to my new computer and everytime i try to use the applications, it states my subscription … read more
The-PC-Guy
The-PC-Guy
Computer Manager
2,034 satisfied customers
My Exel 2016 and powerpoint 2016 aren't working and I need
My Exel 2016 and powerpoint 2016 aren't working and I need to get them fixed right away please.… read more
Mr.Med
Mr.Med
897 satisfied customers
How can I get rid of a chr$(20) in a word .doc. When ever I
When ever I open a Office. word document it has a caracter string 20 and places a character string 20 after each line I type. How can Iset up word so it doesn't do that? … read more
Bryan
Bryan
IT Consultant
8,745 satisfied customers
When trying to email a word document I get a message (and
When trying to email a word document I get a message (and this just happened) "There is no email program associate to perform the requested actions. Please install an email program or, if one is alrea… read more
John
John
System/Network administrator
High School or GED
2,052 satisfied customers
I accidently uninstalled mircosoft office 360 Help! Lenovo
I accidently uninstalled mircosoft office 360 Help! … read more
Kamil Anwar
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
426 satisfied customers
I purchased a new HP computer on Oct. 26, 2017. I am not
I purchased a new HP computer on Oct. 26, 2017. I am not happy with it and plan to return it to Walmart in the morning. I have already subscribed to the Microsoft Office. Is it transferable or do I ne… read more
Viet - Computer Tech
Viet - Computer Tech
Computer Technican
Bachelor\u0027s Degree
952 satisfied customers
Justine, Here. I have installed Office 365 Personal but
Hello Justine, Edward Here. I have installed Office 365 Personal but cannot get any of the Items. Need help. … read more
Viet - Computer Tech
Viet - Computer Tech
Computer Technican
Bachelor\u0027s Degree
952 satisfied customers
I'm using excel as an attendance roster. Columns are classes
I'm using excel as an attendance roster. Columns are classes and rows are students. I can get the names of students in each class, but how can I get the classes each student is taking? … read more
Jason Jones
Jason Jones
AAS Information Technology
6,316 satisfied customers
I need help with a VBA coding problem for a user form. Do
I need help with a VBA coding problem for a user form. Do you answer these questions? … read more
The-PC-Guy
The-PC-Guy
Computer Manager
2,034 satisfied customers
I have just replaced my failed computer and I am having
I have just replaced my failed computer and I am having trouble loading Windows and getting up and running. I cannot seem to be able to create an account with Microsoft. … read more
Jess M.
Jess M.
Computer Support Specialist
Bachelor's Degree
684 satisfied customers
Would like user book for microsoft on mac computer. Osx
would like user book for microsoft on mac computer … read more
Specialist Sean S.
Specialist Sean S.
Computer Support Technician
674 satisfied customers
Just updated my mac software and my outlook 15.1.9 will not
just updated my mac software and my outlook 15.1.9 will not open … read more
Jess M.
Jess M.
Computer Support Specialist
Bachelor's Degree
684 satisfied customers
I have a virus in my excel. Can you help? I have
i have a virus in my excel. Can you help? JA: What's the make and model of your computer? And what version of Excel are you using? Customer: I have streamlining in my letters on my excel JA: Have you … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,208 satisfied customers
How much moneyisneeded to have a Microsoft licence for our
how much moneyisneeded to have a Microsoft licence for our computer? … read more
ChrisC
ChrisC
PC Technician
Associate Degree
659 satisfied customers
I recently upgraded to word 10. I now cannot get my old
I recently upgraded to word 10. I now cannot get my old macros to work … read more
Kris R
Kris R
IT Manager
Computing
2,263 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x