Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Help Using EntireColumn

I am trying the assign the value in the first cell in the activecolumn to a
cell in another worksheet. Below is the "EntireColumn" version of the same
formular

reportWS.Range("A" & reportCurrentRow & "") =
c.EntireRow.Cells(reportCurrentRow, 3)

reportWS.Range("D" & reportCurrentRow
&"")=c.EntireColumn.Cells(reportCurrentRow, X)

How would I figure out what X is?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Help Using EntireColumn

If I understand you correctly;

Cells(1, ActiveCell.Column)

will give you the value of cell 1 or Row1 of the active cell/column

reportWS.Range("D" & reportCurrentRow) = Cells(1, ActiveCell.Column)


If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

I am trying the assign the value in the first cell in the activecolumn to a
cell in another worksheet. Below is the "EntireColumn" version of the same
formular

reportWS.Range("A" & reportCurrentRow & "") =
c.EntireRow.Cells(reportCurrentRow, 3)

reportWS.Range("D" & reportCurrentRow
&"")=c.EntireColumn.Cells(reportCurrentRow, X)

How would I figure out what X is?

  #3   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Help Using EntireColumn

Thanks. But it is not working. I tried both of the following versions:
reportWS.Range("D" & reportCurrentRow & "") = c.EntireColumn.Cells(1,
c.Column)
reportWS.Range("D" & reportCurrentRow & "") = c.Cells(1, c.Column)

"Jacob Skaria" wrote:

If I understand you correctly;

Cells(1, ActiveCell.Column)

will give you the value of cell 1 or Row1 of the active cell/column

reportWS.Range("D" & reportCurrentRow) = Cells(1, ActiveCell.Column)


If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

I am trying the assign the value in the first cell in the activecolumn to a
cell in another worksheet. Below is the "EntireColumn" version of the same
formular

reportWS.Range("A" & reportCurrentRow & "") =
c.EntireRow.Cells(reportCurrentRow, 3)

reportWS.Range("D" & reportCurrentRow
&"")=c.EntireColumn.Cells(reportCurrentRow, X)

How would I figure out what X is?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Help Using EntireColumn

Try the below..In you code what is c refered to...Activecell ?

Set C = ActiveCell
reportws.Range("D" & reportCurrentRow) = Cells(1, C.Column)

If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

Thanks. But it is not working. I tried both of the following versions:
reportWS.Range("D" & reportCurrentRow & "") = c.EntireColumn.Cells(1,
c.Column)
reportWS.Range("D" & reportCurrentRow & "") = c.Cells(1, c.Column)

"Jacob Skaria" wrote:

If I understand you correctly;

Cells(1, ActiveCell.Column)

will give you the value of cell 1 or Row1 of the active cell/column

reportWS.Range("D" & reportCurrentRow) = Cells(1, ActiveCell.Column)


If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

I am trying the assign the value in the first cell in the activecolumn to a
cell in another worksheet. Below is the "EntireColumn" version of the same
formular

reportWS.Range("A" & reportCurrentRow & "") =
c.EntireRow.Cells(reportCurrentRow, 3)

reportWS.Range("D" & reportCurrentRow
&"")=c.EntireColumn.Cells(reportCurrentRow, X)

How would I figure out what X is?

  #5   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Help Using EntireColumn

Thanks Jacob. This worked.
reportWS.Range("D" & reportCurrentRow & "") = c.EntireColumn.Cells(1,
ActiveCell.Column)

"Jacob Skaria" wrote:

Try the below..In you code what is c refered to...Activecell ?

Set C = ActiveCell
reportws.Range("D" & reportCurrentRow) = Cells(1, C.Column)

If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

Thanks. But it is not working. I tried both of the following versions:
reportWS.Range("D" & reportCurrentRow & "") = c.EntireColumn.Cells(1,
c.Column)
reportWS.Range("D" & reportCurrentRow & "") = c.Cells(1, c.Column)

"Jacob Skaria" wrote:

If I understand you correctly;

Cells(1, ActiveCell.Column)

will give you the value of cell 1 or Row1 of the active cell/column

reportWS.Range("D" & reportCurrentRow) = Cells(1, ActiveCell.Column)


If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

I am trying the assign the value in the first cell in the activecolumn to a
cell in another worksheet. Below is the "EntireColumn" version of the same
formular

reportWS.Range("A" & reportCurrentRow & "") =
c.EntireRow.Cells(reportCurrentRow, 3)

reportWS.Range("D" & reportCurrentRow
&"")=c.EntireColumn.Cells(reportCurrentRow, X)

How would I figure out what X is?

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
Checking if ranges are the same after Range.EntireColumn jc Excel Programming 2 June 4th 08 10:18 PM
Macro or VBA to Bold first 3 characters of a cell in the entirecolumn imelda1ab Excel Programming 3 March 7th 08 01:29 PM
EntireColumn.AutoFit - Slow on Large Files??? Steven M. Britton[_2_] Excel Programming 3 June 9th 05 08:14 PM
Purpose of EntireRow and EntireColumn Mike NG Excel Programming 2 May 15th 05 11:06 AM
EntireColumn and merged cells OkieViking Excel Programming 4 March 25th 05 11:23 PM


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