Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying worksheet with VBA

Status
Not open for further replies.

RicksAtWork

Programmer
Nov 1, 2005
120
GB
Whenever I copy a range from a worksheet to another worksheet, with VBA, the columns widths change.

Is it possible to stop this?

Range(deskResearchRangeString).Select
Selection.Copy

'Paste To new Sheet
Windows(ExportWorkSheetFilename).Activate
countryWorkSheet.Paste

 


You can do this in another statement, if your copy the COLUMNS and Paste Special - Formats.

Skip,

[glasses] [red]Be Advised![/red]
The band of elderly oriental musicians, known as Ground Cover, is, in reality...
Asian Jasmine![tongue]
 

Select the SOURCE columns of interest.

COPY

Select the DESTINATION columns of interest.

Edit/Paste Special- Formats.

Skip,

[glasses] [red]Be Advised![/red]
The band of elderly oriental musicians, known as Ground Cover, is, in reality...
Asian Jasmine![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top