Flux rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Active row range from sheet1 to sheet2

  nfc883, on Thursday 7 August 2008 à 17:18:05
Hello,
This may be one of those totally simple things, but I'm teaching myself vba and have been pounding on this problem for days.

In short, sheet2 has a series of graphs that pull data from sheet1 and this all works fine if I set the exact data ranges in my code. But I want to have the data range be columns I through N in the row that contains the active cell on sheet1. I think I have the right idea, but can't seem to make it work.

I have tried many different ways. For instance:

Setting the data series in the first chart using ActiveCell:

.SeriesCollection(1).Values = Worksheets("Sheet1").Range(Cells(ActiveCell.Row, 9), Cells(ActiveCell.Row, 16))

or setting variables:

Dim ar As String ' active row from sheet1
Dim rngData As Range ' Range of user data to be used from sheet1

ar = ActiveCell.Row
Set rngData = Worksheets("Sheet1).Range(Cells(ar, 9), Cells(ar, 16))


or this:

Dim RowNum As Integer ' Active row from sheet 1
Set RowNum = Worksheets("Sheet1").Cells(ActiveCell.Row)

I'm such a beginner! Any ideas?
Reply to nfc883  Report this message to moderators

Résultats pour active row range from sheet1 to sheet2

Excel: Macro Help Hello, I ned some help setting up a macro for Excel. I have a lost of IDs/SKUs on Sheet 1, and a partial list on Sheet2. What I would like to do is cross-check the two sheets and delete all the rows on Sheet1 that's already listed on sheet2. The... en.kioskea.net/forum/affich-5884-excel-macro-help
Place found value to specific colm header Hello, I have this code which looks like this If MYF(FLD) = "012007" Then Cells(ActiveCell.Row, "J").Value = "Y" If MYF(FLD) = "012007" Then Cells(ActiveCell.Row, "K").Value = "Y" If MYF(FLD) = "022007" Then Cells(ActiveCell.Row, "L").Value = "Y" If... en.kioskea.net/forum/affich-25092-place-found-value-to-specific-colm-header
Excel active cell macro Hello, I'm trying to write a macro in excel which would copy and paste a range from WITHIN THE SAME ROW in the same sheet as the active cell is selected. For example let's say i select a cell within range A6:P36 then i would like the macro... en.kioskea.net/forum/affich-25813-excel-active-cell-macro

Résultats pour active row range from sheet1 to sheet2

Activate Volume Control in the taskbarActivate Volume Control in the taskbar It may happen that after some configurations on your computer system, the icon volume control on your task bar disappears. Below is an indication how to recover same. The first step is to go to... en.kioskea.net/faq/sujet-659-activate-volume-control-in-the-taskbar
Activate your FirewallActivate your Firewall There are two ways to activate your firewall with Windows XP. The most simple way to do it is to download it from the link http://www.tiscali.co.uk/help/nbfirewall.html If you do not want to use this you can do it... en.kioskea.net/faq/sujet-521-activate-your-firewall
Activation/Deactivation of System Restore under Windows VistaActivation/Deactivation of System Restore under Windows Vista ] After a clean up of malware infection in your system, it is highly recommended that you reset your system restore in order to clean up restore point that might have been... en.kioskea.net/faq/sujet-584-activation-deactivation-of-system-restore-under-windows-vista

Résultats pour active row range from sheet1 to sheet2

Excel macro: copy between sheetsHello, I have sheet1 and sheet2. I want to create a macro: -copy Bx:Dx from sheet1 to sheet2 Bx:Dx -where x from 6 to "get count row number, where cell is not null" Thanks, Gediminas en.kioskea.net/forum/affich-25484-excel-macro-copy-between-sheets
Excel Macro Help Please (Solved)Hello Everyone, I am sking for some help with an Excel macro please. I have a 1,900 hundred static HTML pages that I have converted to text for the purpose of importing to a DB via an Excel CSV file. I have everything sitting in an excel file now with... en.kioskea.net/forum/affich-11146-excel-macro-help-please
Delete row in a rangeHello, I copy a range from sheet1, workbook1 to workbook2, sheet2, after the last row, that means the range from workbook2, sheet2, is each time in another place. I want to delete empty rows from the range that reside in workbook2, sheet2. How should... en.kioskea.net/forum/affich-19742-delete-row-in-a-range

Résultats pour active row range from sheet1 to sheet2

Download Active PixelsActive Pixels a software of modification of pictures for Windows is. He is rather complete and offers numerous tools (lariat, magic wand, etc) and functionality.It inserts a simple and intuitive interface. Results are instantaneous since operations... en.kioskea.net/telecharger/telecharger-826-active-pixels
Download NewObjects ActiveX Pack1NewObjects ActiveX Pack1 is a pack ice of components ActiveX. He allows management or access of files in binary mode and text. Recording is based on an access haphazardly in fluxes and binary files. It supports combined files OLE.This pack ice is... en.kioskea.net/telecharger/telecharger-890-newobjects-activex-pack1
Download Windows Mobile Device CenterWith the arriving of Windows Vista, it is consequently necessary to use Windows Mobile Device Center.It works on the same foundation as ActiveSync but on top of that aesthetics more complete and with a catch in hand more intuitive.The Windows Mobile... en.kioskea.net/telecharger/telecharger-409-windows-mobile-device-center

Résultats pour active row range from sheet1 to sheet2

China's Internet censorship getting worse: activistChinese surf the Internet at a cybercafe in Urumqi. Activists have warned that Chinese censorship of the Internet and restrictions on reporting have worsened despite Beijing's pledge to improve media freedom ahead of the Olympic Games. Chinese... en.kioskea.net/actualites/china-s-internet-censorship-getting-worse-activist-10466-actualite.php3

Résultats pour active row range from sheet1 to sheet2

Wireless networks - Wireless Personal Area Networks (WPAN) A wireless personal area network (WPAN for short) is a low-range wireless network which covers an area of only a few dozen metres. This sort of network is generally used for linking peripheral devices (like printers, cellphones, and home appliances)... en.kioskea.net/wireless/wpan.php3
Wireless networks - Propagation of Radio Waves In order to be able to install a wireless network, and in particular to place the access points so as to get the best range possible, a little background should be given on how radio waves propagate. Radio waves (shortened to RF for Radio Frequency)... en.kioskea.net/wireless/wlpropa.php3