Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
aprillachlan
 
Posts: n/a
Default Paste special values but not...


Really hoping someone can help me on this one, as I have spent hours
trying to figure out and there must be a simple way to do it.

I have an invoice template, where the sales person enters the product
code into one cell and then the description then appears in the
adjacent cell using the following formula:

=VLOOKUP(C27,'Y:\Excel\[Product
Codes.xls]Sheet1'!$A$2:$B$26597,2,FALSE)

I want the sales person to be able to change the description if
necessary i.e. add the colour of the product etc.

But of course in the description cell is the formula and not the actual
text I have asked it to return.

I know you can do this with paste special then values, but I dont want
the sales people to have to paste special all the time. I want it to do
it automatically.

I have never used VBA and to be honest cant face trying to learn it at
this point. Is there a simple way of doing this?

Many thanks in advance to anyone who is able to help.

April


--
aprillachlan
------------------------------------------------------------------------
aprillachlan's Profile: http://www.excelforum.com/member.php...o&userid=29785
View this thread: http://www.excelforum.com/showthread...hreadid=555010

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Otto Moehrbach
 
Posts: n/a
Default Paste special values but not...

April
The "automatically" requirement forces VBA as your only solution. You
could put a button on the template sheet and label the button whatever you
like, maybe "Modify Description". The sales people would have to be
instructed to click on that button if they wish to modify the description.
Clicking on that button will trigger a macro to execute. That macro would
do the PasteSpecial - Values thing for them.
If this is of interest to you, let me go a little further. The code
will need to know what cell to operate on. The sales people would have to
be instructed to select a cell, any cell, in the row that holds the
description they want to modify, before they clicked the button. The code
would then act on the cell, in that row, that is in the description column.
I'll assume that's Column D. The macro would look like this:
Sub ChgToValue()
Cells(ActiveCell.Row, 4).Copy
Cells(ActiveCell.Row, 4).PasteSpecial xlPasteValues
Application.CutCopyMode = False
End Sub
Please post back if this is suitable for you and you need help with it.
Otto
"aprillachlan"
wrote in message
news:aprillachlan.29v2bd_1151076007.3036@excelforu m-nospam.com...

Really hoping someone can help me on this one, as I have spent hours
trying to figure out and there must be a simple way to do it.

I have an invoice template, where the sales person enters the product
code into one cell and then the description then appears in the
adjacent cell using the following formula:

=VLOOKUP(C27,'Y:\Excel\[Product
Codes.xls]Sheet1'!$A$2:$B$26597,2,FALSE)

I want the sales person to be able to change the description if
necessary i.e. add the colour of the product etc.

But of course in the description cell is the formula and not the actual
text I have asked it to return.

I know you can do this with paste special then values, but I dont want
the sales people to have to paste special all the time. I want it to do
it automatically.

I have never used VBA and to be honest cant face trying to learn it at
this point. Is there a simple way of doing this?

Many thanks in advance to anyone who is able to help.

April


--
aprillachlan
------------------------------------------------------------------------
aprillachlan's Profile:
http://www.excelforum.com/member.php...o&userid=29785
View this thread: http://www.excelforum.com/showthread...hreadid=555010



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
aprillachlan
 
Posts: n/a
Default Paste special values but not...


Otto,

Thanks ever so much for responding. I did what you suggested but in a
roundabout way and it seemed to work.

As I have never tried just typing in code into macors, I used the
"record macros", which I never knew existed.

I recorded copying the cell, then pasting special values only. I just
gave it a short cut button of CTRL+Q.

It seems to have worked and I didnt have to put in any buttons. Thanks
for putting me in the right direction. I never knew that macros could
be so easy!

Thanks again,

April


--
aprillachlan
------------------------------------------------------------------------
aprillachlan's Profile: http://www.excelforum.com/member.php...o&userid=29785
View this thread: http://www.excelforum.com/showthread...hreadid=555010

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Otto Moehrbach
 
Posts: n/a
Default Paste special values but not...

April
Like everything else in life, macros are difficult if you don't know
how. Once you know how, you wonder what all the fuss was about. Otto
"aprillachlan"
wrote in message
news:aprillachlan.2a0grf_1151328155.8891@excelforu m-nospam.com...

Otto,

Thanks ever so much for responding. I did what you suggested but in a
roundabout way and it seemed to work.

As I have never tried just typing in code into macors, I used the
"record macros", which I never knew existed.

I recorded copying the cell, then pasting special values only. I just
gave it a short cut button of CTRL+Q.

It seems to have worked and I didnt have to put in any buttons. Thanks
for putting me in the right direction. I never knew that macros could
be so easy!

Thanks again,

April


--
aprillachlan
------------------------------------------------------------------------
aprillachlan's Profile:
http://www.excelforum.com/member.php...o&userid=29785
View this thread: http://www.excelforum.com/showthread...hreadid=555010



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paste and Paste Special command are not enabled in Excel mcalder219 Excel Worksheet Functions 0 April 26th 06 06:57 PM
paste special values baiju101 Excel Worksheet Functions 1 April 4th 06 02:11 PM
Paste Special and Linking ajkim001 Excel Discussion (Misc queries) 8 March 14th 06 02:10 PM
Paste Special - Values - Transpose J Excel Worksheet Functions 2 December 6th 05 04:25 PM
Paste special in Excel 2002 Alan Excel Discussion (Misc queries) 0 September 15th 05 07:04 PM


All times are GMT +1. The time now is 05:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"