Live-Forum - Die aktuellen Beiträge
Datum
Titel
28.03.2024 21:12:36
28.03.2024 18:31:49
Anzeige
Archiv - Navigation
1224to1228
Aktuelles Verzeichnis
Verzeichnis Index
Übersicht Verzeichnisse
Vorheriger Thread
Rückwärts Blättern
Nächster Thread
Vorwärts blättern
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Inhaltsverzeichnis

Cell Info

Cell Info
Marc
Hi Excel team,
I have a quick question. I have one cell with a reference to another cell " =B3 " for example " By pressing a command button this cell reference should swith to one column further "=C3 ". Next pressing to " =D3 " and so on...
Hope you can help. Thanks in advance!
Marc

1
Beitrag zum Forumthread
Beitrag zu diesem Forumthread

Betreff
Benutzer
Anzeige
AW: Cell Info
11.08.2011 17:14:02
Josef

Hi Marc,
let's say the formula-cell is "A3" you could use the following code.
' **********************************************************************
' Modul: Tabelle1 Typ: Element der Mappe(Sheet, Workbook, ...)
' **********************************************************************

Option Explicit

Private Sub CommandButton1_Click()
  With Range("A3")
    .Formula = "=" & Range(Replace(.Formula, "=", "")).Offset(0, 1).Address(0, 0)
  End With
End Sub



« Gruß Sepp »

Anzeige

Links zu Excel-Dialogen

Beliebteste Forumthreads (12 Monate)

Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige