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

When using this function : Selection.PasteSpecial
Paste:=xlValues,Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

How do I change it to past a Public Constant?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 515
Default PasteSpecial Constant

Activecell.value = constName
where you replace constName with the name of the constant

--
Hth

Kassie Kasselman
Change xxx to hotmail


"Rick" wrote:

When using this function : Selection.PasteSpecial
Paste:=xlValues,Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

How do I change it to past a Public Constant?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 334
Default PasteSpecial Constant

Thanks Kassie, worked like a champ.

"Rick" wrote:

When using this function : Selection.PasteSpecial
Paste:=xlValues,Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

How do I change it to past a Public Constant?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 515
Default PasteSpecial Constant

My pleasure!
--
Hth

Kassie Kasselman
Change xxx to hotmail


"kassie" wrote:

Activecell.value = constName
where you replace constName with the name of the constant

--
Hth

Kassie Kasselman
Change xxx to hotmail


"Rick" wrote:

When using this function : Selection.PasteSpecial
Paste:=xlValues,Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

How do I change it to past a Public Constant?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default PasteSpecial Constant

One caveat:

Instead of ActiveCell, to be fully equivalent, one should use Selection:

Selection.Value = constName

since in the OP's example, Selection could involve multiple cells.



In article ,
kassie wrote:

Activecell.value = constName
where you replace constName with the name of the constant

--
Hth

Kassie Kasselman
Change xxx to hotmail


"Rick" wrote:

When using this function : Selection.PasteSpecial
Paste:=xlValues,Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

How do I change it to past a Public Constant?

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
vba constant value for "Unicode Text" in PasteSpecial function Bourgui Excel Worksheet Functions 0 September 5th 08 08:32 PM
Why need to use Selection.PasteSpecial vs myRange.PasteSpecial [email protected] Excel Programming 4 June 25th 07 05:34 PM
Constant loan payments vs. constant payments of principal lalli945 Excel Worksheet Functions 3 December 20th 06 10:33 PM
PasteSpecial Kevin Excel Programming 3 October 7th 04 01:07 PM
vba pastespecial joao Excel Programming 2 November 14th 03 03:31 PM


All times are GMT +1. The time now is 08:44 PM.

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

About Us

"It's about Microsoft Excel"