Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default pastespecial

Want to cut from worksheet 2 and paste to worksheet 1("Data") been useing
following. Would like to paste without removing validation on sheet 1 paste
special xlvalues etc didn't work rest of procedure works fine
Thanks Much

Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default pastespecial

You can only use PasteSpecial after Copy, not Cut. Not clear exactly what
you re trying to do.

You might need to Copy, PasteSpecial, and then delete the original
selection.
__________________________________________________ _______________________

"Curt" wrote in message
...
Want to cut from worksheet 2 and paste to worksheet 1("Data") been useing
following. Would like to paste without removing validation on sheet 1
paste
special xlvalues etc didn't work rest of procedure works fine
Thanks Much

Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default pastespecial

Thanks much for this tidbit this was not clear to me can do as you suggested
Thanks again

"Vasant Nanavati" wrote:

You can only use PasteSpecial after Copy, not Cut. Not clear exactly what
you re trying to do.

You might need to Copy, PasteSpecial, and then delete the original
selection.
__________________________________________________ _______________________

"Curt" wrote in message
...
Want to cut from worksheet 2 and paste to worksheet 1("Data") been useing
following. Would like to paste without removing validation on sheet 1
paste
special xlvalues etc didn't work rest of procedure works fine
Thanks Much

Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default pastespecial

Will try to explain better.
Have data sheet click on cell this cell has validation set also shrink to
fit. you then click a option button and go to desc sheet. there a cell is
full size for 232 charters. have user control msg boxes for entry so not ove
232. When user fills cell on desc want to copy back to data sheet. All of
this happens useing procedure I will enclose. Where my problem is I want to
keep valaditation on in data sheet after I copy back from cesc.
This code works from a option button in desc sheet
Hopt this shows better what I am trying to do
Thanks


Option Explicit
Dim cellLength As Integer
Sub active_offset()
'Puts descripition into cell shrink to fit cell
'add code to check for amount of text (232) done
Worksheets("desc").Select
Range("A2").Select
cellLength = Len(ActiveCell)
' msgbox (cellLength)
If msgbox(cellLength & vbNewLine & "The Number above must not be over 232
Please review", _
vbYesNo) = vbYes Then
Exit Sub
Else
Dim Data As Worksheet
Range("a2").Select
Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste
With Selection.Validation
.Add Type:=xlValidateTextLength, AlertStyle:=xlValidAlertStop, _
Operator:=xlLessEqual, Formula1:="232"
.IgnoreBlank = False
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Range("B2").Select
End If
End Sub

"Vasant Nanavati" wrote:

You can only use PasteSpecial after Copy, not Cut. Not clear exactly what
you re trying to do.

You might need to Copy, PasteSpecial, and then delete the original
selection.
__________________________________________________ _______________________

"Curt" wrote in message
...
Want to cut from worksheet 2 and paste to worksheet 1("Data") been useing
following. Would like to paste without removing validation on sheet 1
paste
special xlvalues etc didn't work rest of procedure works fine
Thanks Much

Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default pastespecial

Again, what I would do is Copy instead of Cut. Then I would go back to the
original source range and delete it.
__________________________________________________ _______________________

"Curt" wrote in message
...
Will try to explain better.
Have data sheet click on cell this cell has validation set also shrink to
fit. you then click a option button and go to desc sheet. there a cell is
full size for 232 charters. have user control msg boxes for entry so not
ove
232. When user fills cell on desc want to copy back to data sheet. All of
this happens useing procedure I will enclose. Where my problem is I want
to
keep valaditation on in data sheet after I copy back from cesc.
This code works from a option button in desc sheet
Hopt this shows better what I am trying to do
Thanks


Option Explicit
Dim cellLength As Integer
Sub active_offset()
'Puts descripition into cell shrink to fit cell
'add code to check for amount of text (232) done
Worksheets("desc").Select
Range("A2").Select
cellLength = Len(ActiveCell)
' msgbox (cellLength)
If msgbox(cellLength & vbNewLine & "The Number above must not be over 232
Please review", _
vbYesNo) = vbYes Then
Exit Sub
Else
Dim Data As Worksheet
Range("a2").Select
Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste
With Selection.Validation
.Add Type:=xlValidateTextLength, AlertStyle:=xlValidAlertStop, _
Operator:=xlLessEqual, Formula1:="232"
.IgnoreBlank = False
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Range("B2").Select
End If
End Sub

"Vasant Nanavati" wrote:

You can only use PasteSpecial after Copy, not Cut. Not clear exactly what
you re trying to do.

You might need to Copy, PasteSpecial, and then delete the original
selection.
__________________________________________________ _______________________

"Curt" wrote in message
...
Want to cut from worksheet 2 and paste to worksheet 1("Data") been
useing
following. Would like to paste without removing validation on sheet 1
paste
special xlvalues etc didn't work rest of procedure works fine
Thanks Much

Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default pastespecial

will try to work this out with your suggestion
Thanks Again

"Vasant Nanavati" wrote:

Again, what I would do is Copy instead of Cut. Then I would go back to the
original source range and delete it.
__________________________________________________ _______________________

"Curt" wrote in message
...
Will try to explain better.
Have data sheet click on cell this cell has validation set also shrink to
fit. you then click a option button and go to desc sheet. there a cell is
full size for 232 charters. have user control msg boxes for entry so not
ove
232. When user fills cell on desc want to copy back to data sheet. All of
this happens useing procedure I will enclose. Where my problem is I want
to
keep valaditation on in data sheet after I copy back from cesc.
This code works from a option button in desc sheet
Hopt this shows better what I am trying to do
Thanks


Option Explicit
Dim cellLength As Integer
Sub active_offset()
'Puts descripition into cell shrink to fit cell
'add code to check for amount of text (232) done
Worksheets("desc").Select
Range("A2").Select
cellLength = Len(ActiveCell)
' msgbox (cellLength)
If msgbox(cellLength & vbNewLine & "The Number above must not be over 232
Please review", _
vbYesNo) = vbYes Then
Exit Sub
Else
Dim Data As Worksheet
Range("a2").Select
Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste
With Selection.Validation
.Add Type:=xlValidateTextLength, AlertStyle:=xlValidAlertStop, _
Operator:=xlLessEqual, Formula1:="232"
.IgnoreBlank = False
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Range("B2").Select
End If
End Sub

"Vasant Nanavati" wrote:

You can only use PasteSpecial after Copy, not Cut. Not clear exactly what
you re trying to do.

You might need to Copy, PasteSpecial, and then delete the original
selection.
__________________________________________________ _______________________

"Curt" wrote in message
...
Want to cut from worksheet 2 and paste to worksheet 1("Data") been
useing
following. Would like to paste without removing validation on sheet 1
paste
special xlvalues etc didn't work rest of procedure works fine
Thanks Much

Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default pastespecial

Just a Thank You worked it out
Thanks Again

"Vasant Nanavati" wrote:

Again, what I would do is Copy instead of Cut. Then I would go back to the
original source range and delete it.
__________________________________________________ _______________________

"Curt" wrote in message
...
Will try to explain better.
Have data sheet click on cell this cell has validation set also shrink to
fit. you then click a option button and go to desc sheet. there a cell is
full size for 232 charters. have user control msg boxes for entry so not
ove
232. When user fills cell on desc want to copy back to data sheet. All of
this happens useing procedure I will enclose. Where my problem is I want
to
keep valaditation on in data sheet after I copy back from cesc.
This code works from a option button in desc sheet
Hopt this shows better what I am trying to do
Thanks


Option Explicit
Dim cellLength As Integer
Sub active_offset()
'Puts descripition into cell shrink to fit cell
'add code to check for amount of text (232) done
Worksheets("desc").Select
Range("A2").Select
cellLength = Len(ActiveCell)
' msgbox (cellLength)
If msgbox(cellLength & vbNewLine & "The Number above must not be over 232
Please review", _
vbYesNo) = vbYes Then
Exit Sub
Else
Dim Data As Worksheet
Range("a2").Select
Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste
With Selection.Validation
.Add Type:=xlValidateTextLength, AlertStyle:=xlValidAlertStop, _
Operator:=xlLessEqual, Formula1:="232"
.IgnoreBlank = False
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Range("B2").Select
End If
End Sub

"Vasant Nanavati" wrote:

You can only use PasteSpecial after Copy, not Cut. Not clear exactly what
you re trying to do.

You might need to Copy, PasteSpecial, and then delete the original
selection.
__________________________________________________ _______________________

"Curt" wrote in message
...
Want to cut from worksheet 2 and paste to worksheet 1("Data") been
useing
following. Would like to paste without removing validation on sheet 1
paste
special xlvalues etc didn't work rest of procedure works fine
Thanks Much

Selection.Cut
Sheets("Data").Select
ActiveSheet.Paste






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
Why need to use Selection.PasteSpecial vs myRange.PasteSpecial [email protected] Excel Programming 4 June 25th 07 05:34 PM
PasteSpecial KL[_3_] Excel Programming 1 July 8th 04 02:07 PM
pastespecial Claude Excel Programming 2 February 24th 04 01:21 PM
vba pastespecial joao Excel Programming 2 November 14th 03 03:31 PM
pastespecial billQ Excel Programming 2 July 29th 03 11:39 PM


All times are GMT +1. The time now is 11:02 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"